wxAny wxVariant::GetAny() const
{
+ wxAny any;
+
if ( IsNull() )
- return wxAny();
+ return wxAny((const wxAny&)any);
wxVariantData* data = GetData();
- wxAny any;
if ( data->GetAsAny(&any) )
- return any;
+ return wxAny((const wxAny&)any);
// If everything else fails, wrap the whole wxVariantData
- return wxAny(data);
+ return wxAny(((wxVariantData*)data));
}
#endif // wxUSE_ANY
while (node)
{
wxVariant* pVar = node->GetData();
- dst.push_back(new wxAny(*pVar));
+ dst.push_back(new wxAny(((const wxVariant&)*pVar)));
node = node->GetNext();
}