]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/xti2.h
synchronize GTK2 minimum version in docs
[wxWidgets.git] / include / wx / xti2.h
index d5162c1eaf9d4e6ff3876e09b627d28d992c4d16..eeb31067ea4fc9ae62bc6703a2834d818368cef4 100644 (file)
@@ -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),                \