Remove a deprecation warning coming from QRegularExpression
The flag is deprecated. Change-Id: Ice6ffafac6a5fa79675fc7cd84a9fb746f17dfb5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
b42d305333
commit
89bca67499
@ -642,7 +642,7 @@ static void _q_regexp(sqlite3_context* context, int argc, sqlite3_value** argv)
|
||||
const bool wasCached = regexp;
|
||||
|
||||
if (!wasCached)
|
||||
regexp = new QRegularExpression(pattern, QRegularExpression::DontCaptureOption | QRegularExpression::OptimizeOnFirstUsageOption);
|
||||
regexp = new QRegularExpression(pattern, QRegularExpression::DontCaptureOption);
|
||||
|
||||
const bool found = subject.contains(*regexp);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user