From 9814eaaa7623e05b1e2dd11794eb6404afac9040 Mon Sep 17 00:00:00 2001 From: Jatin Chaudhary Date: Tue, 9 Jan 2024 01:32:39 +0000 Subject: [PATCH] Fix warning shown up with clang compiler --- elfio/elfio_modinfo.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elfio/elfio_modinfo.hpp b/elfio/elfio_modinfo.hpp index 2d42ba3..e3a74e1 100644 --- a/elfio/elfio_modinfo.hpp +++ b/elfio/elfio_modinfo.hpp @@ -59,7 +59,7 @@ template 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;