Fix uninitialized member warnings

Based on PVS Studio report
This commit is contained in:
Marek Roszko
2021-05-30 20:01:01 -04:00
parent 67f0bbc6d7
commit 382dca4e6f
10 changed files with 33 additions and 17 deletions
+4 -4
View File
@@ -34,11 +34,11 @@
const int gerbviewSchemaVersion = 0;
GERBVIEW_SETTINGS::GERBVIEW_SETTINGS() : APP_SETTINGS_BASE( "gerbview", gerbviewSchemaVersion )
GERBVIEW_SETTINGS::GERBVIEW_SETTINGS() :
APP_SETTINGS_BASE( "gerbview", gerbviewSchemaVersion ),
m_BoardLayersCount( 2 ),
m_Appearance()
{
// Make Coverity happy
m_BoardLayersCount = 2;
// Init settings:
m_params.emplace_back( new PARAM<bool>( "appearance.show_border_and_titleblock",
&m_Appearance.show_border_and_titleblock, false ) );