]> git.saurik.com Git - wxWidgets.git/commitdiff
VC6 compilation fix
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 14 Apr 2007 16:06:50 +0000 (16:06 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 14 Apr 2007 16:06:50 +0000 (16:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/msgout.cpp

index 9ba8be65d372a6b4f2243de49ece36db058e7104..12136d2886e416213ac98c0a746ea1f6bdde8adc 100755 (executable)
@@ -117,7 +117,7 @@ void wxMessageOutputBest::Output(const wxString& str)
     else
 #endif // __WINDOWS__/!__WINDOWS__
     {
-        const wxWX2MBbuf buf(str.mb_str());
+        const wxWX2MBbuf buf = str.mb_str();
 
         if ( buf )
             fprintf(stderr, "%s", (const char*) buf);
@@ -132,7 +132,7 @@ void wxMessageOutputBest::Output(const wxString& str)
 
 void wxMessageOutputStderr::Output(const wxString& str)
 {
-    const wxWX2MBbuf buf(str.mb_str());
+    const wxWX2MBbuf buf = str.mb_str();
 
     if ( buf )
         fprintf(stderr, "%s", (const char*) buf);