Use ctor-initializer rather than assignment for non-POD class members
This commit is contained in:
@@ -338,8 +338,8 @@ class WXDLLIMPEXP_PROPGRID wxPGCommonValue
|
||||
public:
|
||||
|
||||
wxPGCommonValue( const wxString& label, wxPGCellRenderer* renderer )
|
||||
: m_label(label)
|
||||
{
|
||||
m_label = label;
|
||||
m_renderer = renderer;
|
||||
renderer->IncRef();
|
||||
}
|
||||
|
Reference in New Issue
Block a user