From: Vadim Zeitlin Date: Thu, 5 Apr 2007 12:41:19 +0000 (+0000) Subject: fix warning about unused variable in DoCStrDataTernaryOperator() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/abc505b4936180ef6fedd2b99d73d57b6c389dee fix warning about unused variable in DoCStrDataTernaryOperator() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/strings/strings.cpp b/tests/strings/strings.cpp index c5eee4699c..92898edc98 100644 --- a/tests/strings/strings.cpp +++ b/tests/strings/strings.cpp @@ -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())) );