Fix a few coverity errors

This commit is contained in:
Seth Hillbrand 2019-02-15 20:14:40 -08:00
parent bf814b25da
commit 813578eba6
5 changed files with 9 additions and 5 deletions

View File

@ -29,7 +29,8 @@
DIALOG_GLOBAL_LIB_TABLE_CONFIG::DIALOG_GLOBAL_LIB_TABLE_CONFIG( wxWindow* aParent,
const wxString& aTableName ) :
DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE( aParent )
DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE( aParent ),
m_defaultFileFound( false )
{
m_tableName = aTableName;

View File

@ -120,7 +120,8 @@ LIB_TREE_NODE::LIB_TREE_NODE()
Score( kLowestDefaultScore ),
Normalized( false ),
Unit( 0 ),
IsRoot( false )
IsRoot( false ),
VisLen( 0 )
{}

View File

@ -95,7 +95,7 @@ static int getModelTypeIdx( char aPrimitive )
DIALOG_SPICE_MODEL::DIALOG_SPICE_MODEL( wxWindow* aParent, SCH_COMPONENT& aComponent, SCH_FIELDS* aFields )
: DIALOG_SPICE_MODEL_BASE( aParent ), m_component( aComponent ), m_schfields( aFields ),
m_useSchFields( true ),
m_libfields( nullptr ), m_useSchFields( true ),
m_spiceEmptyValidator( true ), m_notEmptyValidator( wxFILTER_EMPTY )
{
Init();
@ -103,7 +103,7 @@ DIALOG_SPICE_MODEL::DIALOG_SPICE_MODEL( wxWindow* aParent, SCH_COMPONENT& aCompo
DIALOG_SPICE_MODEL::DIALOG_SPICE_MODEL( wxWindow* aParent, SCH_COMPONENT& aComponent, LIB_FIELDS* aFields )
: DIALOG_SPICE_MODEL_BASE( aParent ), m_component( aComponent ),
: DIALOG_SPICE_MODEL_BASE( aParent ), m_component( aComponent ), m_schfields( nullptr ),
m_libfields( aFields ), m_useSchFields( false ),
m_spiceEmptyValidator( true ), m_notEmptyValidator( wxFILTER_EMPTY )
{

View File

@ -137,6 +137,7 @@ public:
m_running( false ),
m_args( 0 ),
m_callContext( nullptr ),
m_caller( nullptr ),
m_callee( nullptr ),
m_retVal( 0 )
{

View File

@ -109,7 +109,8 @@ struct VC_SETTINGS
class VIEW_CONTROLS
{
public:
VIEW_CONTROLS( VIEW* aView ) : m_view( aView )
VIEW_CONTROLS( VIEW* aView ) :
m_view( aView ), m_cursorWarped( false )
{
}