Fix uninitialized fields

Coverity: CIDs 102698, 147347, 147349, 147350
This commit is contained in:
Chris Pavlina 2016-05-10 22:36:23 -04:00
parent 5044fc5799
commit 445db7da58
4 changed files with 9 additions and 2 deletions

View File

@ -195,7 +195,7 @@ struct PARSE_ERROR : public IO_ERROR
virtual ~PARSE_ERROR() throw ( /*none*/ ){} virtual ~PARSE_ERROR() throw ( /*none*/ ){}
protected: protected:
PARSE_ERROR(): IO_ERROR() {} PARSE_ERROR(): IO_ERROR(), lineNumber( 0 ), byteIndex( 0 ) {}
}; };

View File

@ -82,6 +82,11 @@ DIALOG_MODULE_BOARD_EDITOR::DIALOG_MODULE_BOARD_EDITOR( PCB_EDIT_FRAME* aParent
m_NoteBook->SetSelection( m_page ); m_NoteBook->SetSelection( m_page );
m_sdbSizerStdButtonsOK->SetDefault(); m_sdbSizerStdButtonsOK->SetDefault();
m_ReferenceCopy = NULL;
m_ValueCopy = NULL;
m_LastSelected3DShapeIndex = 0;
m_OrientValue = 0;
GetSizer()->SetSizeHints( this ); GetSizer()->SetSizeHints( this );
Centre(); Centre();
Layout(); Layout();

View File

@ -72,6 +72,7 @@ DialogEditModuleText::DialogEditModuleText( PCB_BASE_FRAME* aParent,
m_dc = aDC; m_dc = aDC;
m_module = NULL; m_module = NULL;
m_currentText = aTextMod; m_currentText = aTextMod;
m_OrientValue = 0;
m_OrientValidator.SetRange( -90.0, 90.0 ); m_OrientValidator.SetRange( -90.0, 90.0 );
m_OrientValueCtrl->SetValidator( m_OrientValidator ); m_OrientValueCtrl->SetValidator( m_OrientValidator );

View File

@ -95,7 +95,8 @@ public:
PCB_EDITOR_CONTROL::PCB_EDITOR_CONTROL() : PCB_EDITOR_CONTROL::PCB_EDITOR_CONTROL() :
TOOL_INTERACTIVE( "pcbnew.EditorControl" ), m_frame( NULL ), m_zoneMenu( NULL ) TOOL_INTERACTIVE( "pcbnew.EditorControl" ),
m_frame( NULL ), m_zoneMenu( NULL ), m_lockMenu( NULL )
{ {
m_placeOrigin = new KIGFX::ORIGIN_VIEWITEM( KIGFX::COLOR4D( 0.8, 0.0, 0.0, 1.0 ), m_placeOrigin = new KIGFX::ORIGIN_VIEWITEM( KIGFX::COLOR4D( 0.8, 0.0, 0.0, 1.0 ),
KIGFX::ORIGIN_VIEWITEM::CIRCLE_CROSS ); KIGFX::ORIGIN_VIEWITEM::CIRCLE_CROSS );