Fix building tests with wxUSE_UNSAFE_WXSTRING_CONV==0

Avoid relying on implicit conversions to std::string in the tests code.
This commit is contained in:
Cătălin Răceanu
2017-02-24 16:37:37 +02:00
committed by VZ
parent 3a02672de8
commit e8207c8c59
4 changed files with 6 additions and 2 deletions

View File

@@ -1247,7 +1247,7 @@ void MBConvTestCase::TestStreamDecoder(
{
wxChar wc = textInputStream.GetChar();
CPPUNIT_ASSERT_EQUAL_MESSAGE(
std::string(wxString::Format("At position %lu", (unsigned long)i)),
wxString::Format("At position %lu", (unsigned long)i).ToStdString(),
wideBuffer[i],
wc
);