]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/carbon/brush.h
put refdata virtuals in the right class this time
[wxWidgets.git] / include / wx / mac / carbon / brush.h
index 349bde4603c2f445cd1b32df94e5d8f2fc8a27b0..937109c915d02cd48e58ab8ec63432091802a1a9 100644 (file)
@@ -44,10 +44,9 @@ public:
     virtual void MacSetTheme(short macThemeBrush) ;
     virtual void MacSetThemeBackground(unsigned long macThemeBackground ,  WXRECTPTR extent) ;
 
-    bool operator == (const wxBrush& brush) const
-    { return m_refData == brush.m_refData; }
+    bool operator == (const wxBrush& brush) const;
     bool operator != (const wxBrush& brush) const
-    { return m_refData != brush.m_refData; }
+        { return !(*this == brush); }
 
     wxMacBrushKind MacGetBrushKind()  const ;
 
@@ -65,9 +64,9 @@ public:
     // Useful helper: create the brush resource
     bool RealizeResource();
 
-    // When setting properties, we must make sure we're not changing
-    // another object
-    void Unshare();
+protected:
+    virtual wxObjectRefData* CreateRefData() const;
+    virtual wxObjectRefData* CloneRefData(const wxObjectRefData* data) const;
 };
 
 #endif