]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/buffer.h
check for self-assignment in operator=
[wxWidgets.git] / include / wx / buffer.h
index 231c8d185f1fe4c95907e914236827fa322d37dd..51214ee9972178926206b15db26e8705dde93a71 100644 (file)
@@ -179,10 +179,10 @@ public:
 
 private:
     // reference-counted data
-    struct Data : wxPrivate::UntypedBufferData
+    struct Data : public wxPrivate::UntypedBufferData
     {
         Data(CharType *str, Kind kind = Owned)
-            : UntypedBufferData(str, kind)
+            : wxPrivate::UntypedBufferData(str, kind)
         {
         }
 
@@ -357,7 +357,7 @@ private:
     // the reference count
     size_t m_ref;
 
-    DECLARE_NO_COPY_CLASS(wxMemoryBufferData)
+    wxDECLARE_NO_COPY_CLASS(wxMemoryBufferData);
 };