X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ef6890f0bbda544c510be1bd81c990a480a3ef3..3427bc784ec7dae7d3830e8f2c61565587e8f791:/include/wx/generic/colour.h?ds=sidebyside diff --git a/include/wx/generic/colour.h b/include/wx/generic/colour.h index 24fefe2f6b..edaf6a19e3 100644 --- a/include/wx/generic/colour.h +++ b/include/wx/generic/colour.h @@ -15,7 +15,7 @@ #include "wx/object.h" // Colour -class WXDLLEXPORT wxColour: public wxColourBase +class WXDLLIMPEXP_CORE wxColour: public wxColourBase { public: // constructors @@ -23,11 +23,12 @@ public: 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 virtual bool IsOk() const { return m_isInit; }