X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b150bffc9e137b1fbcb29592512642f65ed331f2..f90913e2ac7938728beed9065f34b7d4c7593513:/include/wx/generic/colour.h diff --git a/include/wx/generic/colour.h b/include/wx/generic/colour.h index feb4928550..ca1ebf05b9 100644 --- a/include/wx/generic/colour.h +++ b/include/wx/generic/colour.h @@ -20,20 +20,18 @@ class WXDLLEXPORT wxColour: public wxColourBase public: // constructors // ------------ - - // default - wxColour(); DEFINE_STD_WXCOLOUR_CONSTRUCTORS // copy ctors and assignment operators - wxColour(const wxColour& col); - wxColour& operator=(const wxColour& col); + wxColour(const wxColour& col) + { + *this = col; + } - // dtor - virtual ~wxColour(); + wxColour& operator=(const wxColour& col); // accessors - bool IsOk() const { return m_isInit; } + virtual bool IsOk() const { return m_isInit; } unsigned char Red() const { return m_red; } unsigned char Green() const { return m_green; }