Browse Source

Fix SonarLint findings in SerializableSectionPairSection class

Patrick-Christopher Mattulat 11 months ago
parent
commit
f02fa7cf35

+ 1 - 1
include/ls-std/io/section-pair/serialization/SerializableSectionPairSection.hpp

@@ -46,7 +46,7 @@ namespace ls::std::io
       [[nodiscard]] ls::std::core::type::byte_field _marshalRows() const;
       [[nodiscard]] ls::std::core::type::byte_field _marshalSectionId() const;
       void _unmarshalRow(const ::std::string &_sectionRow, ls::std::io::SectionPairRowEnumType _type) const;
-      void _unmarshalRows(const ls::std::core::type::byte_field &_serializedRows);
+      void _unmarshalRows(const ls::std::core::type::byte_field &_serializedRows) const;
       [[nodiscard]] size_t _unmarshalSectionHeader(const ls::std::core::type::byte_field &_data) const;
   };
 }

+ 1 - 1
source/ls-std/io/section-pair/serialization/SerializableSectionPairSection.cpp

@@ -201,7 +201,7 @@ void SerializableSectionPairSection::_unmarshalRow(const string &_sectionRow, Se
   dynamic_pointer_cast<SectionPairSection>(this->parameter.getValue())->add(row);
 }
 
-void SerializableSectionPairSection::_unmarshalRows(const byte_field &_serializedRows)
+void SerializableSectionPairSection::_unmarshalRows(const byte_field &_serializedRows) const
 {
   string currentRows = _serializedRows;
   SectionPairRowEnumType type{};