Fixed VC6 compilation - wxAny(const wxVariant&) ctor required a specific 'template<>')
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -224,15 +224,15 @@ wxAny wxVariant::GetAny() const
|
||||
wxAny any;
|
||||
|
||||
if ( IsNull() )
|
||||
return wxAny((const wxAny&)any);
|
||||
return any;
|
||||
|
||||
wxVariantData* data = GetData();
|
||||
|
||||
if ( data->GetAsAny(&any) )
|
||||
return wxAny((const wxAny&)any);
|
||||
return any;
|
||||
|
||||
// If everything else fails, wrap the whole wxVariantData
|
||||
return wxAny(((wxVariantData*)data));
|
||||
return wxAny(data);
|
||||
}
|
||||
|
||||
#endif // wxUSE_ANY
|
||||
|
Reference in New Issue
Block a user