diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-02-09 13:38:08 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-02-11 21:52:08 +0000 |
commit | b38d42b6c6da2fb76746b7b2dbdefc6f01d3db93 (patch) | |
tree | 8f5e706296663312f6cd18e020e42132fb698f9e /tests | |
parent | b4d61e1a8bc4eedbfacbc96678beb8864a911c0b (diff) |
Stop using deprecated QWARN
Just use qWarning instead
Change-Id: I0382ca0e84daa50d32572d6827d908ae391d00d4
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit ac615101d1c4013a9c1a6ecfae7d2da765fe9bf9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/quick/publicapi/tst_publicapi.cpp | 4 |
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)); } } |