]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/log.cpp
Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW...
[wxWidgets.git] / src / common / log.cpp
index 6d6bfde0bd2078b9c2aa8910d8d122e0411e8fa9..258d141ae91a7f4e02efbeea2ce698e63cec58a6 100644 (file)
@@ -558,7 +558,8 @@ void wxLogStderr::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
         wxAppTraits *traits = wxTheApp ? wxTheApp->GetTraits() : NULL;
         if ( traits && !traits->HasStderr() )
         {
-            wxMessageOutputDebug().Printf(_T("%s"), str.c_str());
+            wxMessageOutputDebug dbgout;
+            dbgout.Printf(_T("%s"), str.c_str());
         }
     }
 }