]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/colour.h
Disable disabling wxWeakRef<T>
[wxWidgets.git] / include / wx / generic / colour.h
index 24fefe2f6be054f26b8467e01c9afa0bdf6d9d07..edaf6a19e3ce83e154d9802448e4ee25234d5945 100644 (file)
@@ -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; }