AutoTest: Replace QRegExp by QRegularExpression

Change-Id: I0e7de5482786105d21765fdf7c1180c16414bc01
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2019-05-24 10:12:43 +02:00
parent 07b1d2aa56
commit a2fa8ce2e8
3 changed files with 62 additions and 40 deletions

View File

@@ -30,6 +30,8 @@
#include <coreplugin/id.h>
#include <QRegularExpression>
namespace Autotest {
namespace Internal {
@@ -76,7 +78,7 @@ bool GTestResult::isDirectParentOf(const TestResult *other, bool *needsIntermedi
static QString normalizeName(const QString &name)
{
static QRegExp parameterIndex("/\\d+");
static QRegularExpression parameterIndex("/\\d+");
QString nameWithoutParameterIndices = name;
nameWithoutParameterIndices.remove(parameterIndex);