]> git.saurik.com Git - wxWidgets.git/commitdiff
Visible wxMessageOutputDebug instance.
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 4 Jul 2005 11:26:08 +0000 (11:26 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 4 Jul 2005 11:26:08 +0000 (11:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/log.cpp

index e8b718f05f4b89323f108cc0f358bbce2b123b71..fe4aff00ae63d45d4b1df8a45a8f62e44ca13c11 100644 (file)
@@ -550,7 +550,8 @@ void wxLogBuffer::DoLog(wxLogLevel level, const wxChar *szString, time_t t)
                 TimeStamp(&str);
                 str += szString;
 
-                wxMessageOutputDebug().Printf(_T("%s\n"), str.c_str());
+                wxMessageOutputDebug dbgout;
+                dbgout.Printf(_T("%s\n"), str.c_str());
             }
 #endif // __WXDEBUG__
             break;
@@ -794,7 +795,7 @@ const wxChar *wxSysErrorMsg(unsigned long nErrCode)
         // if this happens, something is seriously wrong, so don't use _() here
         // for safety
         wxSprintf(s_szBuf, _T("unknown error %lx"), nErrCode);
-               return s_szBuf;
+        return s_szBuf;
     }