]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/variant.cpp
painting background of splitter as well, fixes #11958
[wxWidgets.git] / src / common / variant.cpp
index f297b3c4d67e7f81d23968cf132380abec6cbdd5..0470d2d4b373bd5f563fcce865d09580390c0b9f 100644 (file)
@@ -225,11 +225,10 @@ wxVariant::wxVariant(const wxAny& any)
 
 wxAny wxVariant::GetAny() const
 {
-    wxAny any;
-
     if ( IsNull() )
-        return any;
+        return wxAny();
 
+    wxAny any;
     wxVariantData* data = GetData();
 
     if ( data->GetAsAny(&any) )