]> git.saurik.com Git - wxWidgets.git/commitdiff
bcc32 needs some more specializations
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 5 Aug 2003 19:22:28 +0000 (19:22 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 5 Aug 2003 19:22:28 +0000 (19:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/object.cpp

index b66a33ab71300e23f20912c5b6634b5378391465..e39d06cdbb7085ac00273be247d3b58a3df8b881 100644 (file)
 #endif
 
 #if wxUSE_EXTENDED_RTTI
-const wxClassInfo* wxObject::sm_classParentswxObject[] = { NULL } ; 
- wxObject* wxVariantToObjectConverterwxObject ( wxxVariant &data ) 
-{ return data.Get<wxObject*>() ; } 
- wxObject* wxVariantOfPtrToObjectConverterwxObject ( wxxVariant &data ) 
-{ return &data.Get<wxObject>() ; } 
- wxxVariant wxObjectToVariantConverterwxObject ( wxObject *data ) 
+const wxClassInfo* wxObject::sm_classParentswxObject[] = { NULL } ;
+ wxObject* wxVariantToObjectConverterwxObject ( wxxVariant &data )
+{ return data.Get<wxObject*>() ; }
+ wxObject* wxVariantOfPtrToObjectConverterwxObject ( wxxVariant &data )
+{ return &data.Get<wxObject>() ; }
+ wxxVariant wxObjectToVariantConverterwxObject ( wxObject *data )
  { return wxxVariant( dynamic_cast<wxObject*> (data)  ) ; }
- wxClassInfo wxObject::sm_classwxObject(sm_classParentswxObject , wxT("") , wxT("wxObject"),   
+ wxClassInfo wxObject::sm_classwxObject(sm_classParentswxObject , wxT("") , wxT("wxObject"),
             (int) sizeof(wxObject),                              \
-            (wxObjectConstructorFn) 0   ,   
-                       (wxPropertyInfo*) NULL,(wxHandlerInfo*) NULL,0 , 0 ,     
-                       0 , wxVariantOfPtrToObjectConverterwxObject , wxVariantToObjectConverterwxObject , wxObjectToVariantConverterwxObject);    
+            (wxObjectConstructorFn) 0   ,
+                       (wxPropertyInfo*) NULL,(wxHandlerInfo*) NULL,0 , 0 ,
+                       0 , wxVariantOfPtrToObjectConverterwxObject , wxVariantToObjectConverterwxObject , wxObjectToVariantConverterwxObject);
  template<> void wxStringReadValue(const wxString & , wxObject * & ){assert(0) ;}
  template<> void wxStringWriteValue(wxString & , wxObject* const & ){assert(0) ;}
+ template<> void wxStringReadValue(const wxString & , wxObject & ){assert(0) ;}
+ template<> void wxStringWriteValue(wxString & , wxObject const & ){assert(0) ;}
  template<> const wxTypeInfo* wxGetTypeInfo( wxObject ** )
  { static wxClassTypeInfo s_typeInfo(wxT_OBJECT_PTR , &wxObject::sm_classwxObject) ; return &s_typeInfo ; }
+ template<> const wxTypeInfo* wxGetTypeInfo( wxObject * )
+ { static wxClassTypeInfo s_typeInfo(wxT_OBJECT , &wxObject::sm_classwxObject) ; return &s_typeInfo ; }
 #else
 wxClassInfo wxObject::sm_classwxObject( wxT("wxObject"), 0, 0,
                                         (int) sizeof(wxObject),