]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/gdiimage.h
add IsOk() to all classes having Ok() method (patch 1570985)
[wxWidgets.git] / include / wx / os2 / gdiimage.h
index d2ffc8029410f8bddc55ab109985382404657ce3..b2f68d5ff027719ff316b7c20e78adf9ae57a633 100644 (file)
@@ -187,7 +187,8 @@ public:
         pData->m_hHandle = hHandle;
     }
 
-    bool Ok() const { return GetHandle() != 0; }
+    bool Ok() const { return IsOk(); }
+    bool IsOk() const { return GetHandle() != 0; }
 
     int GetWidth() const { return IsNull() ? 0 : GetGDIImageData()->m_nWidth; }
     int GetHeight() const { return IsNull() ? 0 : GetGDIImageData()->m_nHeight; }