commit d7dfa275749c4dde6aac4ce55e8e3f92d9362d8a
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Fri Mar 24 15:54:16 2017 +0100
Try alternative syntax for signaling false positive
---
src/lyxfind.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp
index 57a25e9..441cbf1 100644
--- a/src/lyxfind.cpp
+++ b/src/lyxfind.cpp
@@ -1476,8 +1476,9 @@ static void findAdvReplace(BufferView * bv,
FindAndReplaceOptions const & opt, M
LYXERR(Debug::FIND, "Latexified replace_buffer: '" <<
repl_latex << "'");
string s;
// false positive from coverity
- // coverity[CHECKED_RETURN]
+ // coverity[check_return]
regex_replace(to_utf8(repl_latex), s, "\\$(.*)\\$", "$1");
+ // coverity[check_return]
regex_replace(s, s, "\\\\\\[(.*)\\\\\\]", "$1");
repl_latex = from_utf8(s);
LYXERR(Debug::FIND, "Replacing by insert()ing latex: '" <<
repl_latex << "' cur=" << cur << " with depth=" << cur.depth());