Fix warning shown up with clang compiler

This commit is contained in:
Jatin Chaudhary 2024-01-09 01:32:39 +00:00 committed by Serge Lamikhov-Center
parent 2b457dd5d9
commit 9814eaaa76

View File

@ -59,7 +59,7 @@ template <class S> class modinfo_section_accessor_template
bool get_attribute( const std::string_view& field_name,
std::string& value ) const
{
for ( const auto [first, second] : content ) {
for ( const auto& [first, second] : content ) {
if ( field_name == first ) {
value = second;
return true;