]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/object.h
fixing warning and compile error against 10.4
[wxWidgets.git] / include / wx / object.h
index 80fbae4d2b8c3f91207e08e6de90c5a74193bd6e..5c14734fdd78646455b28bdfe037086f2f097451 100644 (file)
@@ -422,6 +422,12 @@ protected:
 private:
     // our refcount:
     int m_count;
+
+    // It doesn't make sense to copy the reference counted objects, a new ref
+    // counter should be created for a new object instead and compilation
+    // errors in the code using wxRefCounter due to the lack of copy ctor often
+    // indicate a problem, e.g. a forgotten copy ctor implementation somewhere.
+    wxDECLARE_NO_COPY_CLASS(wxRefCounter);
 };
 
 // ----------------------------------------------------------------------------