Use ctor-initializer rather than assignment for non-POD class members
This commit is contained in:
@@ -40,7 +40,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxColourPickerCtrlNameStr[];
|
||||
class WXDLLIMPEXP_CORE wxColourPickerWidgetBase
|
||||
{
|
||||
public:
|
||||
wxColourPickerWidgetBase() { m_colour = *wxBLACK; }
|
||||
wxColourPickerWidgetBase() : m_colour(*wxBLACK) { }
|
||||
virtual ~wxColourPickerWidgetBase() {}
|
||||
|
||||
wxColour GetColour() const
|
||||
|
Reference in New Issue
Block a user