From b22ff229dbd650addcca479d076387f43efa07f1 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 26 Mar 2023 19:43:33 -0400 Subject: [PATCH] DbLib: Get rid of some GCC warnings (cherry picked from commit c35cefe1d5dad8d694f5cb0fc8df357fa2717054) --- eeschema/sch_plugins/database/sch_database_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_plugins/database/sch_database_plugin.cpp b/eeschema/sch_plugins/database/sch_database_plugin.cpp index 3671e322cf..4ebc7d03e7 100644 --- a/eeschema/sch_plugins/database/sch_database_plugin.cpp +++ b/eeschema/sch_plugins/database/sch_database_plugin.cpp @@ -321,13 +321,13 @@ std::optional SCH_DATABASE_PLUGIN::boolFromAny( const std::any& aVal ) strval.MakeLower(); - for( const wxString& trueVal : { wxS( "true" ), wxS( "yes" ), wxS( "y" ), wxS( "1" ) } ) + for( const auto& trueVal : { wxS( "true" ), wxS( "yes" ), wxS( "y" ), wxS( "1" ) } ) { if( strval.Matches( trueVal ) ) return true; } - for( const wxString& falseVal : { wxS( "false" ), wxS( "no" ), wxS( "n" ), wxS( "0" ) } ) + for( const auto& falseVal : { wxS( "false" ), wxS( "no" ), wxS( "n" ), wxS( "0" ) } ) { if( strval.Matches( falseVal ) ) return false;