]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/streams/sstream.cpp
Fix warnings in the MSW IE backend.
[wxWidgets.git] / tests / streams / sstream.cpp
index 4e58062e8419088a8a8808c162aad3d9ca0df6f9..3d65dd7eae8566376a1bd310f04fbcdc7019617c 100644 (file)
@@ -4,7 +4,7 @@
 // Author:      Vadim Zeitlin
 // RCS-ID:      $Id$
 // Copyright:   (c) 2004 Vadim Zeitlin
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 // For compilers that support precompilation, includes "wx/wx.h".
@@ -106,7 +106,7 @@ void strStream::CheckString(const wxString& text)
 {
     wxStringOutputStream sos;
 
-    const wxScopedCharBuffer buf(text.mb_str());
+    const wxCharBuffer buf(text.To8BitData());
     sos.Write(buf, buf.length());
 
     CPPUNIT_ASSERT_EQUAL( text, sos.GetString() );