]> git.saurik.com Git - wxWidgets.git/commitdiff
fix warning about unused variable in DoCStrDataTernaryOperator()
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Apr 2007 12:41:19 +0000 (12:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Apr 2007 12:41:19 +0000 (12:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/strings/strings.cpp

index c5eee4699c2aad7c1ed7c412d966bb814e076dab..92898edc986d5f71bad33c99b35ca96e0adcc91f 100644 (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())) );