]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mgl/pen.h
Fix Ok/IsOk() mess in wxGDIObject-derived classes; also added
[wxWidgets.git] / include / wx / mgl / pen.h
index 6dd307ae0c20ea23aa00e4e4b22159f2e6bc1cea..c8dfd2b533b2d4ab996c6da69f27c195ca751d63 100644 (file)
@@ -27,7 +27,7 @@ class WXDLLIMPEXP_FWD_CORE wxPen;
 // wxPen
 //-----------------------------------------------------------------------------
 
-class WXDLLEXPORT wxPen: public wxGDIObject
+class WXDLLEXPORT wxPen : public wxGDIObject
 {
 public:
     wxPen() {}
@@ -56,16 +56,12 @@ public:
     wxDash* GetDash() const;
     wxBitmap *GetStipple() const;
 
-    bool Ok() const { return IsOk(); }
-    bool IsOk() const;
-
     // implementation:
     void* GetPixPattern() const;
 
 protected:
-    // ref counting code
-    virtual wxObjectRefData *CreateRefData() const;
-    virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
+    virtual wxGDIRefData *CreateGDIRefData() const;
+    virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
 
 private:
     DECLARE_DYNAMIC_CLASS(wxPen)