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:
@@ -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())) );
|
||||
|
Reference in New Issue
Block a user