]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/msgout.cpp
Added ProcessIdle virtual function
[wxWidgets.git] / src / common / msgout.cpp
index 512c9b62684f7072c85e61438113661453487b41..7addcc63105075bdf6b7678ef78a907b9bfaef6a 100755 (executable)
@@ -83,7 +83,7 @@ void wxMessageOutputStderr::Printf(const wxChar* format, ...)
     out.PrintfV(format, args);
     va_end(args);
 
-    fprintf(stderr, "%s", out.mb_str());
+    fprintf(stderr, "%s", (const char*) out.mb_str());
 }
 
 // ----------------------------------------------------------------------------
@@ -102,7 +102,7 @@ void wxMessageOutputMessageBox::Printf(const wxChar* format, ...)
     va_end(args);
 
 #ifndef __WXMSW__
-    out.Replace("\t","        ");
+    out.Replace(wxT("\t"),wxT("        "));
 #endif
     ::wxMessageBox(out);
 }
@@ -113,8 +113,6 @@ void wxMessageOutputMessageBox::Printf(const wxChar* format, ...)
 // wxMessageOutputLog
 // ----------------------------------------------------------------------------
 
-#if wxUSE_GUI && defined(__WXMOTIF__)
-
 void wxMessageOutputLog::Printf(const wxChar* format, ...)
 {
     va_list args;
@@ -129,5 +127,3 @@ void wxMessageOutputLog::Printf(const wxChar* format, ...)
     // wxLog, which is better than nothing
     ::wxLogMessage("%s", out.c_str());
 }
-
-#endif // wxUSE_GUI