Use ctor initializer for non-trivial data members
This commit is contained in:
@@ -33,7 +33,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxFontPickerCtrlNameStr[];
|
|||||||
class WXDLLIMPEXP_CORE wxFontPickerWidgetBase
|
class WXDLLIMPEXP_CORE wxFontPickerWidgetBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxFontPickerWidgetBase() { m_selectedFont = *wxNORMAL_FONT; }
|
wxFontPickerWidgetBase() : m_selectedFont(*wxNORMAL_FONT) { }
|
||||||
virtual ~wxFontPickerWidgetBase() {}
|
virtual ~wxFontPickerWidgetBase() {}
|
||||||
|
|
||||||
wxFont GetSelectedFont() const
|
wxFont GetSelectedFont() const
|
||||||
|
@@ -655,8 +655,8 @@ wxIMPLEMENT_ABSTRACT_CLASS(wxDataViewRendererBase, wxObject);
|
|||||||
wxDataViewRendererBase::wxDataViewRendererBase( const wxString &varianttype,
|
wxDataViewRendererBase::wxDataViewRendererBase( const wxString &varianttype,
|
||||||
wxDataViewCellMode WXUNUSED(mode),
|
wxDataViewCellMode WXUNUSED(mode),
|
||||||
int WXUNUSED(align) )
|
int WXUNUSED(align) )
|
||||||
|
: m_variantType(varianttype)
|
||||||
{
|
{
|
||||||
m_variantType = varianttype;
|
|
||||||
m_owner = NULL;
|
m_owner = NULL;
|
||||||
m_valueAdjuster = NULL;
|
m_valueAdjuster = NULL;
|
||||||
}
|
}
|
||||||
@@ -2204,10 +2204,10 @@ void wxDataViewListCtrl::OnSize( wxSizeEvent &event )
|
|||||||
wxDataViewTreeStoreNode::wxDataViewTreeStoreNode(
|
wxDataViewTreeStoreNode::wxDataViewTreeStoreNode(
|
||||||
wxDataViewTreeStoreNode *parent,
|
wxDataViewTreeStoreNode *parent,
|
||||||
const wxString &text, const wxIcon &icon, wxClientData *data )
|
const wxString &text, const wxIcon &icon, wxClientData *data )
|
||||||
|
: m_text(text)
|
||||||
|
, m_icon(icon)
|
||||||
{
|
{
|
||||||
m_parent = parent;
|
m_parent = parent;
|
||||||
m_text = text;
|
|
||||||
m_icon = icon;
|
|
||||||
m_data = data;
|
m_data = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2222,10 +2222,10 @@ WX_DEFINE_LIST(wxDataViewTreeStoreNodeList)
|
|||||||
|
|
||||||
wxDataViewTreeStoreContainerNode::wxDataViewTreeStoreContainerNode(
|
wxDataViewTreeStoreContainerNode::wxDataViewTreeStoreContainerNode(
|
||||||
wxDataViewTreeStoreNode *parent, const wxString &text,
|
wxDataViewTreeStoreNode *parent, const wxString &text,
|
||||||
const wxIcon &icon, const wxIcon &expanded, wxClientData *data ) :
|
const wxIcon &icon, const wxIcon &expanded, wxClientData *data )
|
||||||
wxDataViewTreeStoreNode( parent, text, icon, data )
|
: wxDataViewTreeStoreNode( parent, text, icon, data )
|
||||||
|
, m_iconExpanded(expanded)
|
||||||
{
|
{
|
||||||
m_iconExpanded = expanded;
|
|
||||||
m_isExpanded = false;
|
m_isExpanded = false;
|
||||||
m_children.DeleteContents(true);
|
m_children.DeleteContents(true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user