From ce2ca9bd7e727909dcd9ff3d9618c2ad345ebe6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sat, 20 Nov 2010 18:28:28 +0000 Subject: [PATCH] lyxfind.cpp: squash compiler warnings git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36414 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxfind.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 6b9d4d7e5f..1ec2519eda 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -776,7 +776,7 @@ int MatchStringAdv::findAux(DocIterator const & cur, int len, bool at_begin) con while (regex_replace(t, t, "\\\\(emph|textbf|subsubsection|subsection|section|subparagraph|paragraph|part)\\{", "") || regex_replace(t, t, "^\\$", "") || regex_replace(t, t, "^\\\\\\[ ", "")) - LYXERR(Debug::FIND, " after removing leading $, \[ , \\emph{, \\textbf{, etc.: " << t); + LYXERR(Debug::FIND, " after removing leading $, \\[ , \\emph{, \\textbf{, etc.: " << t); size_t pos = str.find(t); if (pos != string::npos) return par_as_string.size(); @@ -792,11 +792,11 @@ int MatchStringAdv::findAux(DocIterator const & cur, int len, bool at_begin) con match_results const & m = *re_it; // Check braces on the segment that matched the entire regexp expression, // plus the last subexpression, if a (.*?) was inserted in the constructor. - if (! braces_match(m[0].first, m[0].second, open_braces)) + if (!braces_match(m[0].first, m[0].second, open_braces)) return 0; // Check braces on segments that matched all (.*?) subexpressions. for (size_t i = 1; i < m.size(); ++i) - if (! braces_match(m[i].first, m[i].second)) + if (!braces_match(m[i].first, m[i].second)) return false; // Exclude from the returned match length any length // due to close wildcards added at end of regexp -- 2.39.2