DbLib: Get rid of some GCC warnings

(cherry picked from commit c35cefe1d5)
This commit is contained in:
Jon Evans 2023-03-26 19:43:33 -04:00
parent 23b03fd6ab
commit b22ff229db
1 changed files with 2 additions and 2 deletions

View File

@ -321,13 +321,13 @@ std::optional<bool> SCH_DATABASE_PLUGIN::boolFromAny( const std::any& aVal )
strval.MakeLower(); 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 ) ) if( strval.Matches( trueVal ) )
return true; 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 ) ) if( strval.Matches( falseVal ) )
return false; return false;