From: Václav Slavík Date: Mon, 22 Mar 2004 12:53:37 +0000 (+0000) Subject: compilation fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/238fb020fa7dd8d0b54f1b8788f34e1939a0d70a?hp=2bc86634229d37f3c58fe8321e0b4bd20dec2728 compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/regex/regex.cpp b/tests/regex/regex.cpp index 733e5aed69..3905dcdcc5 100644 --- a/tests/regex/regex.cpp +++ b/tests/regex/regex.cpp @@ -226,14 +226,20 @@ void RegExTestCase::doTest(int flavor) // 'e' - test that the pattern fails to compile if (m_mode == 'e') - return failIf(re.IsValid(), _T("compile suceeded (should fail)")); + { + failIf(re.IsValid(), _T("compile suceeded (should fail)")); + return; + } failIf(!re.IsValid(), _T("compile failed")); bool matches = re.Matches(m_data, m_matchFlags); // 'f' or 'p' - test that the pattern does not match if (m_mode == 'f' || m_mode == 'p') - return failIf(matches, _T("match suceeded (should fail)")); + { + failIf(matches, _T("match suceeded (should fail)")); + return; + } // otherwise 'm' or 'i' - test the pattern does match failIf(!matches, _T("match failed"));