]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/msgout.cpp
getting rid of warnings
[wxWidgets.git] / src / common / msgout.cpp
index 30e50e906b7f998ffb08f23d0e7137f8c28ff2b7..e162226ed61c8a88b3b15eb5534496c2d221da16 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);
 }
@@ -122,8 +122,8 @@ void wxMessageOutputLog::Printf(const wxChar* format, ...)
     out.PrintfV(format, args);
     va_end(args);
 
-    out.Replace("\t","        ");
+    out.Replace(wxT("\t"),wxT("        "));
     // under Motif, wxMessageDialog needs a parent window, so we use
     // wxLog, which is better than nothing
-    ::wxLogMessage("%s", out.c_str());
+    ::wxLogMessage(wxT("%s"), out.c_str());
 }