Fix a few compil or coverity warnings.

This commit is contained in:
jean-pierre charras 2021-06-01 09:04:37 +02:00
parent ed66c0f14d
commit d7616fdca8
3 changed files with 4 additions and 5 deletions

View File

@ -36,8 +36,8 @@ const int gerbviewSchemaVersion = 0;
GERBVIEW_SETTINGS::GERBVIEW_SETTINGS() :
APP_SETTINGS_BASE( "gerbview", gerbviewSchemaVersion ),
m_BoardLayersCount( 2 ),
m_Appearance()
m_Appearance(),
m_BoardLayersCount( 2 )
{
// Init settings:
m_params.emplace_back( new PARAM<bool>( "appearance.show_border_and_titleblock",

View File

@ -720,6 +720,7 @@ void BOARD_DESIGN_SETTINGS::initFromOther( const BOARD_DESIGN_SETTINGS& aOther )
m_AuxOrigin = aOther.m_AuxOrigin;
m_GridOrigin = aOther.m_GridOrigin;
m_HasStackup = aOther.m_HasStackup;
m_UseHeightForLengthCalcs= aOther.m_UseHeightForLengthCalcs;
m_trackWidthIndex = aOther.m_trackWidthIndex;
m_viaSizeIndex = aOther.m_viaSizeIndex;

View File

@ -1027,7 +1027,7 @@ bool PCBMODEL::getModelLabel( const std::string& aFileName, TRIPLET aScale, TDF_
{
ReportMessage( wxString::Format( "readSTEP() failed on filename %s\n",
aFileName ) );
return false;
return false;
}
{
@ -1074,8 +1074,6 @@ bool PCBMODEL::getModelLabel( const std::string& aFileName, TRIPLET aScale, TDF_
return success;
}
return getModelLabel( outFile.GetFullPath().ToStdString(), aScale, aLabel );
break;
}