Fix warning when not using Qt regexps

This commit is contained in:
Jean-Marc Lasgouttes 2021-03-05 11:54:11 +01:00
parent 23fc1b270d
commit e6a7da3b22

View File

@ -3225,6 +3225,7 @@ void MatchStringAdv::CreateRegexp(FindAndReplaceOptions const & opt, string rege
regexError += "Invalid regexp2 \"" + regexp2_str + "\", error = " + regexp2.errorString().toStdString(); regexError += "Invalid regexp2 \"" + regexp2_str + "\", error = " + regexp2.errorString().toStdString();
} }
#else #else
(void)par_as_string;
if (opt.casesensitive) { if (opt.casesensitive) {
regexp = regex(regexp_str); regexp = regex(regexp_str);
regexp2 = regex(regexp2_str); regexp2 = regex(regexp2_str);