Fix missing variable initialization

This commit is contained in:
Ian McInerney 2020-07-18 23:56:39 +01:00
parent d5ff02ad55
commit 50b2271f84
10 changed files with 45 additions and 10 deletions

View File

@ -31,9 +31,11 @@
#include "../3d_fastmath.h"
CPOSTSHADER_SSAO::CPOSTSHADER_SSAO( const CCAMERA &aCamera ) : CPOSTSHADER( aCamera )
CPOSTSHADER_SSAO::CPOSTSHADER_SSAO( const CCAMERA &aCamera ) :
CPOSTSHADER( aCamera ),
m_shadedBuffer( nullptr ),
m_isUsingShadows( false )
{
m_shadedBuffer = NULL;
}
// There are differente sources for this shader on the web

View File

@ -40,7 +40,8 @@
PROJECT::PROJECT() :
m_projectFile( nullptr )
m_projectFile( nullptr ),
m_localSettings( nullptr )
{
memset( m_elems, 0, sizeof(m_elems) );
}

View File

@ -33,7 +33,14 @@ const int appSettingsSchemaVersion = 0;
APP_SETTINGS_BASE::APP_SETTINGS_BASE( const std::string& aFilename, int aSchemaVersion ) :
JSON_SETTINGS( aFilename, SETTINGS_LOC::USER, aSchemaVersion ),
m_Printing(), m_System(), m_Window(), m_appSettingsSchemaVersion( aSchemaVersion )
m_CrossProbing(),
m_FindReplace(),
m_Graphics(),
m_LibTree(),
m_Printing(),
m_System(),
m_Window(),
m_appSettingsSchemaVersion( aSchemaVersion )
{
// Make Coverity happy:
m_LibTree.column_width = 360;

View File

@ -36,7 +36,12 @@ const int commonSchemaVersion = 1;
COMMON_SETTINGS::COMMON_SETTINGS() :
JSON_SETTINGS( "kicad_common", SETTINGS_LOC::USER, commonSchemaVersion ),
m_Appearance(), m_Env(), m_Input(), m_Graphics(), m_System()
m_Appearance(),
m_Backup(),
m_Env(),
m_Input(),
m_Graphics(),
m_System()
{
// This only effect the first time KiCad is run. The user's setting will be used for all
// subsequent runs.

View File

@ -198,10 +198,11 @@ private:
TOOL_MANAGER::TOOL_MANAGER() :
m_model( NULL ),
m_view( NULL ),
m_viewControls( NULL ),
m_frame( NULL ),
m_model( nullptr ),
m_view( nullptr ),
m_viewControls( nullptr ),
m_frame( nullptr ),
m_settings( nullptr ),
m_warpMouseAfterContextMenu( true ),
m_menuActive( false ),
m_menuOwner( -1 ),

View File

@ -36,7 +36,22 @@
const int eeschemaSchemaVersion = 0;
EESCHEMA_SETTINGS::EESCHEMA_SETTINGS() : APP_SETTINGS_BASE( "eeschema", eeschemaSchemaVersion )
EESCHEMA_SETTINGS::EESCHEMA_SETTINGS() :
APP_SETTINGS_BASE( "eeschema", eeschemaSchemaVersion ),
m_Appearance(),
m_AutoplaceFields(),
m_Drawing(),
m_Input(),
m_PageSettings(),
m_AnnotatePanel(),
m_BomPanel(),
m_FieldEditorPanel(),
m_LibViewPanel(),
m_NetlistPanel(),
m_SymChooserPanel(),
m_Selection(),
m_Simulator(),
m_RescueNeverShow( false )
{
m_params.emplace_back( new PARAM<wxString>( "appearance.edit_component_visible_columns",
&m_Appearance.edit_component_visible_columns, "0 1 2 3 4 5 6 7" ) );

View File

@ -41,6 +41,7 @@ SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS( JSON_SETTINGS* aParent, const std::strin
m_TextOffsetRatio( 0.08 ),
m_PinSymbolSize( DEFAULT_TEXT_SIZE * IU_PER_MILS / 2 ),
m_JunctionSize( DEFAULT_JUNCTION_DIAM * IU_PER_MILS ),
m_SpiceAdjustPassiveValues( false ),
m_TemplateFieldNames( nullptr )
{
EESCHEMA_SETTINGS* appSettings = dynamic_cast<EESCHEMA_SETTINGS*>( Kiface().KifaceSettings() );

View File

@ -484,6 +484,7 @@ ARULE6::ARULE6( ALTIUM_PARSER& aReader )
polygonconnectAirgapwidth = 0;
polygonconnectReliefconductorwidth = 0;
polygonconnectReliefentries = 0;
polygonconnectStyle = ALTIUM_CONNECT_STYLE::UNKNOWN;
aReader.Skip( 2 );

View File

@ -64,6 +64,7 @@ PCBNEW_SETTINGS::PCBNEW_SETTINGS()
m_FootprintViewer(),
m_FootprintWizard(),
m_Display(),
m_TrackDragAction( TRACK_DRAG_ACTION::DRAG ),
m_Use45DegreeGraphicSegments( false ),
m_FlipLeftRight( false ),
m_PolarCoords( false ),

View File

@ -44,6 +44,7 @@
PAD_TOOL::PAD_TOOL() :
PCB_TOOL_BASE( "pcbnew.PadTool" ),
m_padCopied( false ),
m_wasHighContrast( false ),
m_editPad( niluuid )
{}