@@ -45,7 +45,7 @@ void TestPokitProducts::toString_PokitProduct()
45
45
QFETCH (QString, expected);
46
46
47
47
if (expected.isNull ()) {
48
- QTest::ignoreMessage (QtWarningMsg, QRegularExpression (QStringLiteral ( R "( ^Unknown PokitProduct value: \d+$)" ) ));
48
+ QTest::ignoreMessage (QtWarningMsg, QRegularExpression (uR "( ^Unknown PokitProduct value: \d+$)" _s ));
49
49
}
50
50
51
51
QCOMPARE (toString (product), expected);
@@ -214,7 +214,7 @@ void TestPokitProducts::toString_Capacitance()
214
214
if (product == PokitProduct::PokitMeter) {
215
215
QTest::ignoreMessage (QtWarningMsg, " Pokit Meter has no capacitance support" );
216
216
} else if (expected.isNull ()) {
217
- QTest::ignoreMessage (QtWarningMsg, QRegularExpression (QStringLiteral ( R "( ^Unknown PokitProduct value: \d+$)" ) ));
217
+ QTest::ignoreMessage (QtWarningMsg, QRegularExpression (uR "( ^Unknown PokitProduct value: \d+$)" _s ));
218
218
}
219
219
220
220
QCOMPARE (CapacitanceRange::toString (product, range), expected);
@@ -242,7 +242,7 @@ void TestPokitProducts::maxValue_Capacitance()
242
242
if (product == PokitProduct::PokitMeter) {
243
243
QTest::ignoreMessage (QtWarningMsg, " Pokit Meter has no capacitance support" );
244
244
} else if (!expected) {
245
- QTest::ignoreMessage (QtWarningMsg, QRegularExpression (QStringLiteral ( R "( ^Unknown PokitProduct value: \d+$)" ) ));
245
+ QTest::ignoreMessage (QtWarningMsg, QRegularExpression (uR "( ^Unknown PokitProduct value: \d+$)" _s ));
246
246
}
247
247
248
248
QCOMPARE (CapacitanceRange::maxValue (product, range), expected);
@@ -270,7 +270,7 @@ void TestPokitProducts::toString_Current()
270
270
QFETCH (QString, expected);
271
271
272
272
if (expected.isNull ()) {
273
- QTest::ignoreMessage (QtWarningMsg, QRegularExpression (QStringLiteral ( R "( ^Unknown PokitProduct value: \d+$)" ) ));
273
+ QTest::ignoreMessage (QtWarningMsg, QRegularExpression (uR "( ^Unknown PokitProduct value: \d+$)" _s ));
274
274
}
275
275
276
276
QCOMPARE (CurrentRange::toString (product, range), expected);
@@ -296,7 +296,7 @@ void TestPokitProducts::maxValue_Current()
296
296
QFETCH (quint32, expected);
297
297
298
298
if (!expected) {
299
- QTest::ignoreMessage (QtWarningMsg, QRegularExpression (QStringLiteral ( R "( ^Unknown PokitProduct value: \d+$)" ) ));
299
+ QTest::ignoreMessage (QtWarningMsg, QRegularExpression (uR "( ^Unknown PokitProduct value: \d+$)" _s ));
300
300
}
301
301
302
302
QCOMPARE (CurrentRange::maxValue (product, range), expected);
@@ -324,7 +324,7 @@ void TestPokitProducts::toString_Resistance()
324
324
QFETCH (QString, expected);
325
325
326
326
if (expected.isNull ()) {
327
- QTest::ignoreMessage (QtWarningMsg, QRegularExpression (QStringLiteral ( R "( ^Unknown PokitProduct value: \d+$)" ) ));
327
+ QTest::ignoreMessage (QtWarningMsg, QRegularExpression (uR "( ^Unknown PokitProduct value: \d+$)" _s ));
328
328
}
329
329
330
330
QCOMPARE (ResistanceRange::toString (product, range), expected);
@@ -350,7 +350,7 @@ void TestPokitProducts::maxValue_Resistance()
350
350
QFETCH (quint32, expected);
351
351
352
352
if (!expected) {
353
- QTest::ignoreMessage (QtWarningMsg, QRegularExpression (QStringLiteral ( R "( ^Unknown PokitProduct value: \d+$)" ) ));
353
+ QTest::ignoreMessage (QtWarningMsg, QRegularExpression (uR "( ^Unknown PokitProduct value: \d+$)" _s ));
354
354
}
355
355
356
356
QCOMPARE (ResistanceRange::maxValue (product, range), expected);
@@ -378,7 +378,7 @@ void TestPokitProducts::toString_Voltage()
378
378
QFETCH (QString, expected);
379
379
380
380
if (expected.isNull ()) {
381
- QTest::ignoreMessage (QtWarningMsg, QRegularExpression (QStringLiteral ( R "( ^Unknown PokitProduct value: \d+$)" ) ));
381
+ QTest::ignoreMessage (QtWarningMsg, QRegularExpression (uR "( ^Unknown PokitProduct value: \d+$)" _s ));
382
382
}
383
383
384
384
QCOMPARE (VoltageRange::toString (product, range), expected);
@@ -404,7 +404,7 @@ void TestPokitProducts::maxValue_Voltage()
404
404
QFETCH (quint32, expected);
405
405
406
406
if (!expected) {
407
- QTest::ignoreMessage (QtWarningMsg, QRegularExpression (QStringLiteral ( R "( ^Unknown PokitProduct value: \d+$)" ) ));
407
+ QTest::ignoreMessage (QtWarningMsg, QRegularExpression (uR "( ^Unknown PokitProduct value: \d+$)" _s ));
408
408
}
409
409
410
410
QCOMPARE (VoltageRange::maxValue (product, range), expected);
0 commit comments