From 9ff00b8f5779af63232beb8d29927806d8539202 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 18 May 2012 11:09:07 +0000 Subject: [PATCH] fixing c++11 build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/xti2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/xti2.h b/include/wx/xti2.h index d5162c1eaf..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), \