Fix minor compil warnings

This commit is contained in:
jean-pierre charras 2024-05-12 20:17:53 +02:00
parent d9a6b2aec2
commit cae3be6bac
2 changed files with 9 additions and 9 deletions

View File

@ -234,12 +234,12 @@ protected:
void PANEL_SYM_LIB_TABLE::setupGrid( WX_GRID* aGrid )
{
auto autoSizeCol =
[&]( WX_GRID* aGrid, int aCol )
[&]( WX_GRID* aCurrGrid, int aCol )
{
int prevWidth = aGrid->GetColSize( aCol );
int prevWidth = aCurrGrid->GetColSize( aCol );
aGrid->AutoSizeColumn( aCol, false );
aGrid->SetColSize( aCol, std::max( prevWidth, aGrid->GetColSize( aCol ) ) );
aCurrGrid->AutoSizeColumn( aCol, false );
aCurrGrid->SetColSize( aCol, std::max( prevWidth, aCurrGrid->GetColSize( aCol ) ) );
};
EESCHEMA_SETTINGS* cfg = Pgm().GetSettingsManager().GetAppSettings<EESCHEMA_SETTINGS>();

View File

@ -931,16 +931,16 @@ LIB_SYMBOL* SCH_EASYEDA_PARSER::ParseSymbol( const VECTOR2D& aOrigi
std::optional<wxString> valOpt;
wxString symbolName = wxS( "Unknown" );
if( valOpt = get_opt( aParams, wxS( "name" ) ) )
if( ( valOpt = get_opt( aParams, wxS( "name" ) ) ) )
symbolName = *valOpt;
else if( valOpt = get_opt( aParams, wxS( "spiceSymbolName" ) ) )
else if( ( valOpt = get_opt( aParams, wxS( "spiceSymbolName" ) ) ) )
symbolName = *valOpt;
wxString symbolPrefix;
if( valOpt = get_opt( aParams, wxS( "pre" ) ) )
if( ( valOpt = get_opt( aParams, wxS( "pre" ) ) ) )
symbolPrefix = *valOpt;
else if( valOpt = get_opt( aParams, wxS( "spicePre" ) ) )
else if( ( valOpt = get_opt( aParams, wxS( "spicePre" ) ) ) )
symbolPrefix = *valOpt;
LIB_ID libId = EasyEdaToKiCadLibID( wxEmptyString, symbolName );
@ -958,7 +958,7 @@ LIB_SYMBOL* SCH_EASYEDA_PARSER::ParseSymbol( const VECTOR2D& aOrigi
if( srcName == wxS( "Datasheet" ) )
srcName = wxS( "link" );
if( valOpt = get_opt( aParams, srcName ) )
if( ( valOpt = get_opt( aParams, srcName ) ) )
{
if( valOpt->empty() )
continue;