]> git.saurik.com Git - wxWidgets.git/commitdiff
no changes, just match the number of opening/closing braces to avoid upsetting Vim...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 27 Aug 2008 23:03:55 +0000 (23:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 27 Aug 2008 23:03:55 +0000 (23:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/regex.cpp

index f6ca8782913e64e3ec4ddfe6bf99610974e299b8..7a7029c8b562846622156fb0598ffcf16ed6e797 100644 (file)
@@ -515,10 +515,11 @@ int wxRegExImpl::Replace(wxString *text,
     // note that "^" shouldn't match after the first call to Matches() so we
     // use wxRE_NOTBOL to prevent it from happening
     while ( (!maxMatches || countRepl < maxMatches) &&
+             Matches(
 #ifndef WXREGEX_CONVERT_TO_MB
-            Matches(textstr + matchStart,
+                    textstr + matchStart,
 #else
-            Matches(textstr.data() + matchStart,
+                    textstr.data() + matchStart,
 #endif 
                     countRepl ? wxRE_NOTBOL : 0
                     WXREGEX_IF_NEED_LEN(textlen - matchStart)) )