]> git.lyx.org Git - features.git/blobdiff - src/lyxfind.cpp
Mark a number of coverity false positives.
[features.git] / src / lyxfind.cpp
index d7038dedcb1e66d4bc96bb8e328e81dd26f295c1..69a9b80883c37eaeb7bc14084484fa94e2b6920d 100644 (file)
@@ -1408,6 +1408,8 @@ static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, M
                docstring repl_latex = ods.str();
                LYXERR(Debug::FIND, "Latexified replace_buffer: '" << repl_latex << "'");
                string s;
+               // false positive from coverity
+               // coverity[CHECKED_RETURN]
                regex_replace(to_utf8(repl_latex), s, "\\$(.*)\\$", "$1");
                regex_replace(s, s, "\\\\\\[(.*)\\\\\\]", "$1");
                repl_latex = from_utf8(s);