X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e548f6b13a27eee6f2740d922cab636f0b305e0..b6339dde8ce17772dd3a03845d7737641f017b93:/include/wx/object.h diff --git a/include/wx/object.h b/include/wx/object.h index 20aa447d2d..84e258463a 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -547,7 +547,11 @@ public: // get the runtime identity of this object wxClassInfo *GetClassInfo() const { +#ifdef _MSC_VER + return (wxClassInfo*) m_classInfo; +#else return wx_const_cast(wxClassInfo *, m_classInfo); +#endif } wxObject* GetSuperClassInstance() const