From 9b59b90cdade332e7fa5235969f1354db6b822c9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 5 Apr 2007 14:19:18 +0000 Subject: [PATCH] fix another warning about unused variable in DoCStrDataTernaryOperator() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/strings/strings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/strings/strings.cpp b/tests/strings/strings.cpp index 92898edc98..ca6a5cd709 100644 --- a/tests/strings/strings.cpp +++ b/tests/strings/strings.cpp @@ -678,7 +678,6 @@ void StringTestCase::DoCStrDataTernaryOperator(bool cond) // are not very important, we're testing if the code compiles at all): wxString s("foo"); - const char *mbStr = "foo"; // FIXME-UTF8: when wxCStrData can handle both conversions, this should // be changed to always test all versions, both MB and WC @@ -689,6 +688,7 @@ void StringTestCase::DoCStrDataTernaryOperator(bool cond) CPPUNIT_ASSERT( CheckStr(s, (cond ? wcStr : s.c_str())) ); CPPUNIT_ASSERT( CheckStr(s, (cond ? L"bar" : s.c_str())) ); #else + const char *mbStr = "foo"; CPPUNIT_ASSERT( CheckStr(s, (cond ? s.c_str() : mbStr)) ); CPPUNIT_ASSERT( CheckStr(s, (cond ? s.c_str() : "foo")) ); CPPUNIT_ASSERT( CheckStr(s, (cond ? mbStr : s.c_str())) );