X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f06d69376d3081732f5bf5f57c2b00d5166ae8e6..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/xti2.h diff --git a/include/wx/xti2.h b/include/wx/xti2.h index 4e26e2a16c..eeb31067ea 100644 --- a/include/wx/xti2.h +++ b/include/wx/xti2.h @@ -124,7 +124,7 @@ wxObject* wxVariantOfPtrToObjectConverter##name ( const wxAny &data ) \ _DEFAULT_CONSTRUCTOR(name) \ _DEFAULT_CONVERTERS(name) \ void wxVariantToObjectConverter##name ( const wxAny &data, wxObjectFunctor* fn ) \ -{ (*fn)( &wxANY_AS(data, name) ); } \ + { name o = wxANY_AS(data, name); (*fn)( &o ); } \ \ const wxClassInfo* name::ms_classParents[] = { &basename::ms_classInfo,NULL }; \ wxClassInfo name::ms_classInfo(name::ms_classParents, wxT(unit), \ @@ -249,7 +249,8 @@ wxObject* wxVariantOfPtrToObjectConverter##name ( const wxAny &data ) \ wxT(#basename2), (int) sizeof(name), \ (wxObjectConstructorFn) 0); -// templated streaming, every type must have their specialization for these methods +// templated streaming, every type that can be converted to wxString +// must have their specialization for these methods template void wxStringReadValue( const wxString &s, T &data );