]> git.saurik.com Git - wxWidgets.git/commitdiff
Suppressed some harmless VC6 warnings
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 17 Apr 2010 09:00:28 +0000 (09:00 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 17 Apr 2010 09:00:28 +0000 (09:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/any.cpp

index 1049b42efaf76ed6f9db51f730d6dff7b5b68292..1e49badd8119fcdb6ff9f435308d562214c2d484 100644 (file)
@@ -165,7 +165,7 @@ bool wxConvertAnyToVariant(const wxAny& any, wxVariant* variant)
     if ( wxANY_CHECK_TYPE(any, signed int) )
     {
 #ifdef wxLongLong_t
-        wxLongLong_t ll;
+        wxLongLong_t ll = 0;
         if ( any.GetAs(&ll) )
         {
             if ( ll > LONG_MAX )
@@ -191,8 +191,8 @@ bool wxConvertAnyToVariant(const wxAny& any, wxVariant* variant)
     wxVariantDataFactory f =
         g_wxAnyValueTypeGlobals->FindVariantDataFactory(any.GetType());
 
-    wxVariantData* data;
+    wxVariantData* data = NULL;
+
     if ( f )
     {
         data = f(any);