Initialize member variables to avoid warnings
This commit is contained in:
@@ -730,6 +730,7 @@ public:
|
||||
wxAny()
|
||||
{
|
||||
m_type = wxAnyNullValueType;
|
||||
m_buffer = { 0 };
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -244,7 +244,7 @@ private:
|
||||
wxEventFunction m_method;
|
||||
|
||||
// Provide a dummy default ctor for type info purposes
|
||||
wxObjectEventFunctor() { }
|
||||
wxObjectEventFunctor() : m_handler(NULL), m_method(NULL) { }
|
||||
|
||||
WX_DECLARE_TYPEINFO_INLINE(wxObjectEventFunctor)
|
||||
};
|
||||
|
@@ -52,6 +52,9 @@ class WXDLLIMPEXP_CORE wxGaugeBase : public wxControl
|
||||
{
|
||||
public:
|
||||
wxGaugeBase() : m_rangeMax(0), m_gaugePos(0),
|
||||
#if wxGAUGE_EMULATE_INDETERMINATE_MODE
|
||||
m_nDirection(wxRIGHT),
|
||||
#endif
|
||||
m_appProgressIndicator(NULL) { }
|
||||
|
||||
virtual ~wxGaugeBase();
|
||||
|
@@ -33,7 +33,7 @@ class WXDLLIMPEXP_FWD_CORE wxListBoxBase;
|
||||
class WXDLLIMPEXP_CORE wxAnyChoiceDialog : public wxDialog
|
||||
{
|
||||
public:
|
||||
wxAnyChoiceDialog() { }
|
||||
wxAnyChoiceDialog() : m_listbox(NULL) { }
|
||||
|
||||
wxAnyChoiceDialog(wxWindow *parent,
|
||||
const wxString& message,
|
||||
|
@@ -39,6 +39,7 @@ public:
|
||||
wxTextEntryDialog()
|
||||
{
|
||||
m_textctrl = NULL;
|
||||
m_dialogStyle = 0;
|
||||
}
|
||||
|
||||
wxTextEntryDialog(wxWindow *parent,
|
||||
|
@@ -333,7 +333,7 @@ class WXDLLIMPEXP_BASE wxListKey
|
||||
public:
|
||||
// implicit ctors
|
||||
wxListKey() : m_keyType(wxKEY_NONE)
|
||||
{ }
|
||||
{ m_key.integer = 0; }
|
||||
wxListKey(long i) : m_keyType(wxKEY_INTEGER)
|
||||
{ m_key.integer = i; }
|
||||
wxListKey(const wxString& s) : m_keyType(wxKEY_STRING)
|
||||
|
@@ -17,7 +17,7 @@
|
||||
class WXDLLIMPEXP_CORE wxCheckBox : public wxMSWOwnerDrawnButton<wxCheckBoxBase>
|
||||
{
|
||||
public:
|
||||
wxCheckBox() { }
|
||||
wxCheckBox() : m_state(wxCHK_UNCHECKED) { }
|
||||
wxCheckBox(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& label,
|
||||
|
@@ -288,7 +288,7 @@ private:
|
||||
|
||||
public:
|
||||
// the initial state is direct
|
||||
DecoderState() { mode = Direct; }
|
||||
DecoderState() { mode = Direct; accum = bit = msb = 0; }
|
||||
|
||||
// switch to/from shifted mode
|
||||
void ToDirect() { mode = Direct; }
|
||||
@@ -317,7 +317,7 @@ private:
|
||||
Mode mode;
|
||||
|
||||
public:
|
||||
EncoderState() { mode = Direct; }
|
||||
EncoderState() { mode = Direct; accum = bit = 0; }
|
||||
|
||||
void ToDirect() { mode = Direct; }
|
||||
void ToShifted() { mode = Shifted; accum = bit = 0; }
|
||||
|
@@ -3379,7 +3379,7 @@ private:
|
||||
{
|
||||
// notice that there is no need to initialize m_len here as it's unused
|
||||
// as long as m_str is NULL
|
||||
ConvertedBuffer() : m_str(NULL) {}
|
||||
ConvertedBuffer() : m_str(NULL), m_len(0) {}
|
||||
~ConvertedBuffer()
|
||||
{ free(m_str); }
|
||||
|
||||
|
Reference in New Issue
Block a user