[LyX/master] Fix warning when not using Qt regexps

Jean-Marc Lasgouttes lasgouttes at lyx.org
Fri Mar 5 10:49:34 UTC 2021


commit e6a7da3b222e1615e02e92ed5ac91bee5cb50acc
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Fri Mar 5 11:54:11 2021 +0100

    Fix warning when not using Qt regexps
---
 src/lyxfind.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp
index d1c91c5..2d6aea0 100644
--- a/src/lyxfind.cpp
+++ b/src/lyxfind.cpp
@@ -3225,6 +3225,7 @@ void MatchStringAdv::CreateRegexp(FindAndReplaceOptions const & opt, string rege
 			regexError += "Invalid regexp2 \"" + regexp2_str + "\", error = " + regexp2.errorString().toStdString();
 	}
 #else
+	(void)par_as_string;
 	if (opt.casesensitive) {
 		regexp = regex(regexp_str);
 		regexp2 = regex(regexp2_str);


More information about the lyx-cvs mailing list