mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
A better way to tell coverity that we do not care about result
This commit is contained in:
parent
d54578a951
commit
cb888293d4
@ -1475,11 +1475,8 @@ static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, M
|
|||||||
docstring repl_latex = ods.str();
|
docstring repl_latex = ods.str();
|
||||||
LYXERR(Debug::FIND, "Latexified replace_buffer: '" << repl_latex << "'");
|
LYXERR(Debug::FIND, "Latexified replace_buffer: '" << repl_latex << "'");
|
||||||
string s;
|
string s;
|
||||||
// false positive from coverity
|
(void)regex_replace(to_utf8(repl_latex), s, "\\$(.*)\\$", "$1");
|
||||||
// coverity[check_return]
|
(void)regex_replace(s, s, "\\\\\\[(.*)\\\\\\]", "$1");
|
||||||
regex_replace(to_utf8(repl_latex), s, "\\$(.*)\\$", "$1");
|
|
||||||
// coverity[check_return]
|
|
||||||
regex_replace(s, s, "\\\\\\[(.*)\\\\\\]", "$1");
|
|
||||||
repl_latex = from_utf8(s);
|
repl_latex = from_utf8(s);
|
||||||
LYXERR(Debug::FIND, "Replacing by insert()ing latex: '" << repl_latex << "' cur=" << cur << " with depth=" << cur.depth());
|
LYXERR(Debug::FIND, "Replacing by insert()ing latex: '" << repl_latex << "' cur=" << cur << " with depth=" << cur.depth());
|
||||||
MathData ar(cur.buffer());
|
MathData ar(cur.buffer());
|
||||||
|
Loading…
Reference in New Issue
Block a user