From: Vadim Zeitlin Date: Mon, 12 Apr 2010 11:21:37 +0000 (+0000) Subject: Fix string stream unit test compilation in non-Unicode build. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9def6786d6dfa2be639dc339a5b100e6bedd99aa?ds=inline Fix string stream unit test compilation in non-Unicode build. wxScopedCharBuffer can't be constructed from char* string, just use wxCharBuffer instead, we don't care about efficiency here. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/streams/sstream.cpp b/tests/streams/sstream.cpp index 4e58062e84..f345a926df 100644 --- a/tests/streams/sstream.cpp +++ b/tests/streams/sstream.cpp @@ -106,7 +106,7 @@ void strStream::CheckString(const wxString& text) { wxStringOutputStream sos; - const wxScopedCharBuffer buf(text.mb_str()); + const wxCharBuffer buf(text.mb_str()); sos.Write(buf, buf.length()); CPPUNIT_ASSERT_EQUAL( text, sos.GetString() );