Corrected return type of getters in TDF structs

This commit is contained in:
Nav
2024-02-26 00:57:52 +00:00
parent 7918b7c9f7
commit 98f10bc1f4
3 changed files with 3 additions and 7 deletions

View File

@@ -67,9 +67,7 @@ namespace Targets::TargetDescription
: std::nullopt;
}
std::optional<std::reference_wrapper<const MemorySegmentSection>> getSection(
std::string_view keyStr
) const {
const MemorySegmentSection& getSection(std::string_view keyStr) const {
const auto propertyGroup = this->tryGetSection(keyStr);
if (!propertyGroup.has_value()) {
throw Exceptions::InvalidTargetDescriptionDataException(