]> git.saurik.com Git - wxWidgets.git/commitdiff
Warning fix
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Thu, 7 Apr 2005 00:59:27 +0000 (00:59 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Thu, 7 Apr 2005 00:59:27 +0000 (00:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/regex/wxregextest.cpp

index 7d7b3085b92bd35769faf2b69a5178603a060a17..39d61a1dda399f33296bf72cb40d75bec3331a14 100644 (file)
@@ -169,7 +169,7 @@ void RegExReplaceTestCase::runTest()
     msgstr.Printf(_T("returns '%s' (expected '%s')"), text.c_str(), m_expected.c_str());
     CPPUNIT_ASSERT_MESSAGE((const char*)msgstr.mb_str(), text == m_expected);
 
-    msgstr.Printf(_T("matches %d times (expected %d)"), nRepl, m_count);
+    msgstr << _T("matches ") << nRepl << _T(" times (expected ") << m_count << _T(")");
     CPPUNIT_ASSERT_MESSAGE((const char*)msgstr.mb_str(), nRepl == m_count);
 }