Browse Source

Fix uninitialized fields

Coverity: CIDs 102698, 147347, 147349, 147350
pull/2/merge
Chris Pavlina 10 years ago
parent
commit
445db7da58
  1. 2
      include/richio.h
  2. 5
      pcbnew/dialogs/dialog_edit_module_for_BoardEditor.cpp
  3. 1
      pcbnew/dialogs/dialog_edit_module_text.cpp
  4. 3
      pcbnew/tools/pcb_editor_control.cpp

2
include/richio.h

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

5
pcbnew/dialogs/dialog_edit_module_for_BoardEditor.cpp

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

1
pcbnew/dialogs/dialog_edit_module_text.cpp

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

3
pcbnew/tools/pcb_editor_control.cpp

@ -95,7 +95,8 @@ public:
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 ),
KIGFX::ORIGIN_VIEWITEM::CIRCLE_CROSS );

Loading…
Cancel
Save