]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/regex/regextest.cpp
fix a couple of harmless warnings during wxOSX build
[wxWidgets.git] / tests / regex / regextest.cpp
index bd0895085990dcc2118f9e01b16d3997eb4a6b89..822012b8e20b017fcb62ac2080f604bebec15e5f 100644 (file)
@@ -170,8 +170,8 @@ wxString RegExTestCase::Conv(const char *str)
 
     if (!buf || wxWcscmp(wxConvCurrent->cWX2WC(buf), wstr) != 0)
         return convError();
-    else
-        return buf;
+
+    return buf;
 }
 
 // Parse flags
@@ -272,19 +272,23 @@ void RegExTestCase::doTest(int flavor)
 
         // m - check the match returns the strings given
         if (m_mode == 'm')
+        {
             if (start < INT_MAX)
                 result = m_data.substr(start, len);
             else
                 result = _T("");
+        }
 
         // i - check the match returns the offsets given
         else if (m_mode == 'i')
+        {
             if (start > INT_MAX)
                 result = _T("-1 -1");
             else if (start + len > 0)
                 result << start << _T(" ") << start + len - 1;
             else
                 result << start << _T(" -1");
+        }
 
         msg.clear();
         msg << _T("match(") << i << _T(") == ") << quote(result)