Fix a few coverity errors
This commit is contained in:
parent
bf814b25da
commit
813578eba6
|
@ -29,7 +29,8 @@
|
||||||
|
|
||||||
DIALOG_GLOBAL_LIB_TABLE_CONFIG::DIALOG_GLOBAL_LIB_TABLE_CONFIG( wxWindow* aParent,
|
DIALOG_GLOBAL_LIB_TABLE_CONFIG::DIALOG_GLOBAL_LIB_TABLE_CONFIG( wxWindow* aParent,
|
||||||
const wxString& aTableName ) :
|
const wxString& aTableName ) :
|
||||||
DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE( aParent )
|
DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE( aParent ),
|
||||||
|
m_defaultFileFound( false )
|
||||||
{
|
{
|
||||||
m_tableName = aTableName;
|
m_tableName = aTableName;
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,8 @@ LIB_TREE_NODE::LIB_TREE_NODE()
|
||||||
Score( kLowestDefaultScore ),
|
Score( kLowestDefaultScore ),
|
||||||
Normalized( false ),
|
Normalized( false ),
|
||||||
Unit( 0 ),
|
Unit( 0 ),
|
||||||
IsRoot( false )
|
IsRoot( false ),
|
||||||
|
VisLen( 0 )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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::DIALOG_SPICE_MODEL( wxWindow* aParent, SCH_COMPONENT& aComponent, SCH_FIELDS* aFields )
|
||||||
: DIALOG_SPICE_MODEL_BASE( aParent ), m_component( aComponent ), m_schfields( 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 )
|
m_spiceEmptyValidator( true ), m_notEmptyValidator( wxFILTER_EMPTY )
|
||||||
{
|
{
|
||||||
Init();
|
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::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_libfields( aFields ), m_useSchFields( false ),
|
||||||
m_spiceEmptyValidator( true ), m_notEmptyValidator( wxFILTER_EMPTY )
|
m_spiceEmptyValidator( true ), m_notEmptyValidator( wxFILTER_EMPTY )
|
||||||
{
|
{
|
||||||
|
|
|
@ -137,6 +137,7 @@ public:
|
||||||
m_running( false ),
|
m_running( false ),
|
||||||
m_args( 0 ),
|
m_args( 0 ),
|
||||||
m_callContext( nullptr ),
|
m_callContext( nullptr ),
|
||||||
|
m_caller( nullptr ),
|
||||||
m_callee( nullptr ),
|
m_callee( nullptr ),
|
||||||
m_retVal( 0 )
|
m_retVal( 0 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -109,7 +109,8 @@ struct VC_SETTINGS
|
||||||
class VIEW_CONTROLS
|
class VIEW_CONTROLS
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VIEW_CONTROLS( VIEW* aView ) : m_view( aView )
|
VIEW_CONTROLS( VIEW* aView ) :
|
||||||
|
m_view( aView ), m_cursorWarped( false )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue