Corrected return type of RegisterGroup::getSubgroup() member function
This commit is contained in:
@@ -64,7 +64,7 @@ namespace Targets::TargetDescription
|
|||||||
return this->tryGetSubgroup(Services::StringService::split(keyStr, '.'));
|
return this->tryGetSubgroup(Services::StringService::split(keyStr, '.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<std::reference_wrapper<const RegisterGroup>> getSubgroup(std::string_view keyStr) const {
|
const RegisterGroup& getSubgroup(std::string_view keyStr) const {
|
||||||
const auto subgroup = this->tryGetSubgroup(keyStr);
|
const auto subgroup = this->tryGetSubgroup(keyStr);
|
||||||
if (!subgroup.has_value()) {
|
if (!subgroup.has_value()) {
|
||||||
throw Exceptions::InvalidTargetDescriptionDataException(
|
throw Exceptions::InvalidTargetDescriptionDataException(
|
||||||
|
|||||||
Reference in New Issue
Block a user