X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9def6786d6dfa2be639dc339a5b100e6bedd99aa..f155075229d771430f0793700f5048ad4be00e9d:/tests/streams/sstream.cpp diff --git a/tests/streams/sstream.cpp b/tests/streams/sstream.cpp index f345a926df..3d65dd7eae 100644 --- a/tests/streams/sstream.cpp +++ b/tests/streams/sstream.cpp @@ -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 wxCharBuffer buf(text.mb_str()); + const wxCharBuffer buf(text.To8BitData()); sos.Write(buf, buf.length()); CPPUNIT_ASSERT_EQUAL( text, sos.GetString() );