Skip to content

Commit

Permalink
Fix warning shown up with clang compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
cjatin authored and serge1 committed Jan 12, 2024
1 parent 2b457dd commit 9814eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elfio/elfio_modinfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9814eaa

Please sign in to comment.