Remove a deprecation warning coming from QRegularExpression
The flag is deprecated. Change-Id: Idfd7c31278032ee96b27f3f447a97ecfdd8051af Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
189e40e11e
commit
b42d305333
|
|
@ -1298,8 +1298,7 @@ static QStringList backtraceFramesForLogMessage(int frameCount)
|
|||
// The offset and function name are optional.
|
||||
// This regexp tries to extract the library name (without the path) and the function name.
|
||||
// This code is protected by QMessagePattern::mutex so it is thread safe on all compilers
|
||||
static QRegularExpression rx(QStringLiteral("^(?:[^(]*/)?([^(/]+)\\(([^+]*)(?:[\\+[a-f0-9x]*)?\\) \\[[a-f0-9x]*\\]$"),
|
||||
QRegularExpression::OptimizeOnFirstUsageOption);
|
||||
static QRegularExpression rx(QStringLiteral("^(?:[^(]*/)?([^(/]+)\\(([^+]*)(?:[\\+[a-f0-9x]*)?\\) \\[[a-f0-9x]*\\]$"));
|
||||
|
||||
QVarLengthArray<void*, 32> buffer(8 + frameCount);
|
||||
int n = backtrace(buffer.data(), buffer.size());
|
||||
|
|
|
|||
Loading…
Reference in New Issue