fix warning about unused variable in DoCStrDataTernaryOperator()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-04-05 12:41:19 +00:00
parent 5149f75b93
commit abc505b493

View File

@@ -679,11 +679,11 @@ void StringTestCase::DoCStrDataTernaryOperator(bool cond)
wxString s("foo");
const char *mbStr = "foo";
const wchar_t *wcStr = L"foo";
// FIXME-UTF8: when wxCStrData can handle both conversions, this should
// be changed to always test all versions, both MB and WC
#if wxUSE_UNICODE
const wchar_t *wcStr = L"foo";
CPPUNIT_ASSERT( CheckStr(s, (cond ? s.c_str() : wcStr)) );
CPPUNIT_ASSERT( CheckStr(s, (cond ? s.c_str() : L"bar")) );
CPPUNIT_ASSERT( CheckStr(s, (cond ? wcStr : s.c_str())) );