summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/publicapi
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2022-02-09 13:38:08 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-02-11 10:37:35 +0000
commitac615101d1c4013a9c1a6ecfae7d2da765fe9bf9 (patch)
treead5b11779600085f5de4819d76c8798a99627312 /tests/auto/quick/publicapi
parent9e7fa7ad7c5376e2aa83e7135d1a1ab511792c2e (diff)
Stop using deprecated QWARN
Just use qWarning instead Pick-to: 6.3 Change-Id: I0382ca0e84daa50d32572d6827d908ae391d00d4 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'tests/auto/quick/publicapi')
-rw-r--r--tests/auto/quick/publicapi/tst_publicapi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/publicapi/tst_publicapi.cpp b/tests/auto/quick/publicapi/tst_publicapi.cpp
index af22add1f..0608e3a13 100644
--- a/tests/auto/quick/publicapi/tst_publicapi.cpp
+++ b/tests/auto/quick/publicapi/tst_publicapi.cpp
@@ -905,7 +905,7 @@ void tst_publicapi::publicAPI()
// Make sure that nothing slips in the public API unintentionally.
for (const QString &actual : qAsConst(actualAPI)) {
if (!expectedAPI.contains(actual)) {
- QWARN(qPrintable("Expected list is not up-to-date: " + actual));
+ qWarning("Expected list is not up-to-date: %ls", qUtf16Printable(actual));
apiMatch = false;
}
}
@@ -913,7 +913,7 @@ void tst_publicapi::publicAPI()
for (const QString &expected : expectedAPI) {
if (!actualAPI.contains(expected)) {
apiMatch = false;
- QWARN(qPrintable("Not implemented: " + expected));
+ qWarning("Not implemented: %ls", qUtf16Printable(expected));
}
}