]> git.saurik.com Git - wxWidgets.git/commitdiff
moving common code
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 10 Dec 2007 20:07:19 +0000 (20:07 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 10 Dec 2007 20:07:19 +0000 (20:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gdiobj.h

index 2464f78827100ae008416589e4d498083f577750..ebe33197534f3fa0c014912dbb6a9895432ca182 100644 (file)
@@ -31,6 +31,11 @@ class WXDLLIMPEXP_CORE wxGDIObject: public wxObject
 public:
     bool IsNull() const { return m_refData == NULL; }
 
+    // older version, for backwards compat
+    bool Ok() const { return IsOk(); }
+    
+    virtual bool IsOk() const { return (m_refData != NULL) ; }
+
 #if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXPALMOS__)
     // Creates the resource
     virtual bool RealizeResource() { return false; }