From: Julian Smart Date: Wed, 29 Sep 2004 16:21:47 +0000 (+0000) Subject: Temp fix for VC6/XTI X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f525dc35f4b2c07fb7efb53a85779a2f3a3d89f5?ds=inline Temp fix for VC6/XTI git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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