commit 4828dfb441775d00e5f7ebcb38544405bc713980
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Fri Mar 5 13:12:58 2021 +0100

    Indicate that we do not use a return value
    
    Please Coverity.
---
 src/lyxfind.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp
index 2d6aea0..09bfead 100644
--- a/src/lyxfind.cpp
+++ b/src/lyxfind.cpp
@@ -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 << "'");
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to