]> git.saurik.com Git - wxWidgets.git/commitdiff
fix harmless warnings about uninitialized (not really) variables in MSVC release...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 Jul 2009 20:48:32 +0000 (20:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 Jul 2009 20:48:32 +0000 (20:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/log.cpp
src/generic/logg.cpp

index 0afb906f289d4e97031c426efa04737bac553ca1..e0686ce3d877c38c2b1b05aa6f56a7c97bb9e636 100644 (file)
@@ -263,7 +263,7 @@ wxLog::OnLog(wxLogLevel level,
 
     // handle extra data which may be passed to us by wxLogXXX()
     wxString prefix, suffix;
-    wxUIntPtr num;
+    wxUIntPtr num = 0;
     if ( info.GetNumValue(wxLOG_KEY_SYS_ERROR_CODE, &num) )
     {
         long err = static_cast<long>(num);
index b4fe435373c66b3e34c974895d257421e708d0b9..ae690ab5ff1f48cd8f489459b6a5dcc8c2475bfe 100644 (file)
@@ -373,7 +373,7 @@ void wxLogGui::DoLogRecord(wxLogLevel level,
                 wxFrame *pFrame = NULL;
 
                 // check if the frame was passed to us explicitly
-                wxUIntPtr ptr;
+                wxUIntPtr ptr = NULL;
                 if ( info.GetNumValue(wxLOG_KEY_FRAME, &ptr) )
                 {
                     pFrame = static_cast<wxFrame *>(wxUIntToPtr(ptr));