More uninitialized variables.

This commit is contained in:
Jeff Young 2020-01-13 19:46:39 +00:00
parent 91d1508c16
commit 9df2cfb328
3 changed files with 12 additions and 8 deletions

View File

@ -27,7 +27,6 @@
#include <wx/string.h>
#include <wx/display.h>
#include <dialog_shim.h>
#include <eda_doc.h>
#include <id.h>
#include <kiface_i.h>
#include <pgm_base.h>
@ -82,7 +81,12 @@ EDA_BASE_FRAME::EDA_BASE_FRAME( wxWindow* aParent, FRAME_T aFrameType,
const wxString& aTitle, const wxPoint& aPos, const wxSize& aSize,
long aStyle, const wxString& aFrameName, KIWAY* aKiway ) :
wxFrame( aParent, wxID_ANY, aTitle, aPos, aSize, aStyle, aFrameName ),
KIWAY_HOLDER( aKiway, KIWAY_HOLDER::FRAME )
KIWAY_HOLDER( aKiway, KIWAY_HOLDER::FRAME ),
m_actions( nullptr ),
m_immediateActions( true ),
m_dragSelects( true ),
m_moveWarpsCursor( true ),
m_userUnits( EDA_UNITS::MILLIMETRES )
{
m_Ident = aFrameType;
m_hasAutoSave = false;

View File

@ -61,10 +61,12 @@
#include "zone_filler_tool.h"
DRC::DRC() :
PCB_TOOL_BASE( "pcbnew.DRCTool" )
PCB_TOOL_BASE( "pcbnew.DRCTool" ),
m_currentMarker( nullptr ),
m_pcbEditorFrame( nullptr ),
m_pcb( nullptr ),
m_drcDialog( nullptr )
{
m_drcDialog = NULL;
// establish initial values for everything:
m_doPad2PadTest = true; // enable pad to pad clearance tests
m_doUnconnectedTest = true; // enable unconnected tests
@ -80,8 +82,6 @@ DRC::DRC() :
m_doCreateRptFile = false;
// m_rptFilename set to empty by its constructor
m_currentMarker = NULL;
m_segmAngle = 0;
m_segmLength = 0;