DbLib: Get rid of some GCC warnings
(cherry picked from commit c35cefe1d5
)
This commit is contained in:
parent
23b03fd6ab
commit
b22ff229db
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue