From ac615101d1c4013a9c1a6ecfae7d2da765fe9bf9 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 9 Feb 2022 13:38:08 +0100 Subject: Stop using deprecated QWARN Just use qWarning instead Pick-to: 6.3 Change-Id: I0382ca0e84daa50d32572d6827d908ae391d00d4 Reviewed-by: Marc Mutz --- tests/auto/quick/publicapi/tst_publicapi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto/quick/publicapi') 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)); } } -- cgit v1.2.3