X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfind.cpp;h=69a9b80883c37eaeb7bc14084484fa94e2b6920d;hb=355395174bf50e1a3b8514e8eebec978c496d6ba;hp=d7038dedcb1e66d4bc96bb8e328e81dd26f295c1;hpb=2db62cf5d548ac6307134496b1fa8fbb8422327d;p=features.git diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index d7038dedcb..69a9b80883 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -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);