From f525dc35f4b2c07fb7efb53a85779a2f3a3d89f5 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 29 Sep 2004 16:21:47 +0000 Subject: [PATCH] Temp fix for VC6/XTI git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/object.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.45.2