From: Vadim Zeitlin Date: Mon, 18 Feb 2008 23:58:09 +0000 (+0000) Subject: make IsOk() virtual to allow it to be overridden in e.g. wxEnhMetaFile (replaces... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4decd6afa5dab2dcb235778554028aac05e3b256 make IsOk() virtual to allow it to be overridden in e.g. wxEnhMetaFile (replaces patch 1896222) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gdiobj.h b/include/wx/gdiobj.h index fc2e0756d7..77b4c532f2 100644 --- a/include/wx/gdiobj.h +++ b/include/wx/gdiobj.h @@ -36,7 +36,7 @@ class WXDLLIMPEXP_CORE wxGDIObject : public wxObject { public: // checks if the object can be used - bool IsOk() const + virtual bool IsOk() const { // the cast here is safe because the derived classes always create // wxGDIRefData objects