X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/499a9a62227fb95b19fdb2d48f799988b218c666..2d35020a8dd1a0908f4e76af323cc0d413d6b8c3:/src/common/object.cpp diff --git a/src/common/object.cpp b/src/common/object.cpp index 8f49548b59..622569f308 100644 --- a/src/common/object.cpp +++ b/src/common/object.cpp @@ -49,14 +49,14 @@ #endif #if wxUSE_EXTENDED_RTTI -const wxClassInfo* wxObject::sm_classParentswxObject[] = { NULL } ; +const wxClassInfo* wxObject::ms_classParents[] = { NULL } ; wxObject* wxVariantToObjectConverterwxObject ( wxxVariant &data ) -{ return data.Get() ; } +{ return data.wxTEMPLATED_MEMBER_CALL(Get , wxObject*) ; } wxObject* wxVariantOfPtrToObjectConverterwxObject ( wxxVariant &data ) -{ return &data.Get() ; } +{ return &data.wxTEMPLATED_MEMBER_CALL(Get , wxObject) ; } wxxVariant wxObjectToVariantConverterwxObject ( wxObject *data ) { return wxxVariant( dynamic_cast (data) ) ; } - wxClassInfo wxObject::sm_classwxObject(sm_classParentswxObject , wxT("") , wxT("wxObject"), + wxClassInfo wxObject::ms_classInfo(ms_classParents , wxT("") , wxT("wxObject"), (int) sizeof(wxObject), \ (wxObjectConstructorFn) 0 , (wxPropertyInfo*) NULL,(wxHandlerInfo*) NULL,0 , 0 , @@ -65,10 +65,10 @@ const wxClassInfo* wxObject::sm_classParentswxObject[] = { NULL } ; template<> void wxStringWriteValue(wxString & , wxObject* const & ){assert(0) ;} template<> void wxStringReadValue(const wxString & , wxObject & ){assert(0) ;} template<> void wxStringWriteValue(wxString & , wxObject const & ){assert(0) ;} - wxClassTypeInfo s_typeInfo(wxT_OBJECT_PTR , &wxObject::sm_classwxObject , NULL , NULL , typeid(wxObject*).name() ) ; - wxClassTypeInfo s_typeInfowxObject(wxT_OBJECT , &wxObject::sm_classwxObject , NULL , NULL , typeid(wxObject).name() ) ; + wxClassTypeInfo s_typeInfo(wxT_OBJECT_PTR , &wxObject::ms_classInfo , NULL , NULL , typeid(wxObject*).name() ) ; + wxClassTypeInfo s_typeInfowxObject(wxT_OBJECT , &wxObject::ms_classInfo , NULL , NULL , typeid(wxObject).name() ) ; #else -wxClassInfo wxObject::sm_classwxObject( wxT("wxObject"), 0, 0, +wxClassInfo wxObject::ms_classInfo( wxT("wxObject"), 0, 0, (int) sizeof(wxObject), (wxObjectConstructorFn) 0 ); #endif