]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/colour.h
Last part from weak ref patch for event sink disconnection
[wxWidgets.git] / include / wx / generic / colour.h
index 24fefe2f6be054f26b8467e01c9afa0bdf6d9d07..ca1ebf05b960ccfce8fbdf4517d4689b5afe4fdc 100644 (file)
@@ -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; }