Indicate that we do not use a return value

Please Coverity.
This commit is contained in:
Jean-Marc Lasgouttes 2021-03-05 13:12:58 +01:00
parent f5340fd6d9
commit 4828dfb441

View File

@ -3328,7 +3328,7 @@ MatchStringAdv::MatchStringAdv(lyx::Buffer & buf, FindAndReplaceOptions & opt)
string lead_as_regexp;
if (lead_size > 0) {
lead_as_regexp = string2regex(par_as_string.substr(0, lead_size));
regex_replace(par_as_string_nolead, par_as_string_nolead, "}$", "");
(void)regex_replace(par_as_string_nolead, par_as_string_nolead, "}$", "");
par_as_string = par_as_string_nolead;
LYXERR(Debug::FIND, "lead_as_regexp is '" << lead_as_regexp << "'");
LYXERR(Debug::FIND, "par_as_string now is '" << par_as_string << "'");