From 7f267360f2220322d9a4bec921be651f51f83da4 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 30 Mar 2020 13:33:31 +0200 Subject: Port test to QRegularExpression Change-Id: I4026fa2fa5da34974cdc37353e7ea5a8e8806033 Reviewed-by: Samuel Gaist --- tests/auto/tools/moc/tst_moc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto/tools/moc/tst_moc.cpp') diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp index 221e741647..b701aa05a3 100644 --- a/tests/auto/tools/moc/tst_moc.cpp +++ b/tests/auto/tools/moc/tst_moc.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include "using-namespaces.h" #include "assign-namespace.h" @@ -2254,8 +2255,7 @@ void tst_Moc::warnings() #ifdef Q_CC_MSVC // for some reasons, moc compiled with MSVC uses a different output format - QRegExp lineNumberRe(":(-?\\d+):"); - lineNumberRe.setMinimal(true); + QRegularExpression lineNumberRe(":(-?\\d+):", QRegularExpression::InvertedGreedinessOption); expectedStdErr.replace(lineNumberRe, "(\\1):"); #endif -- cgit v1.2.3