From d0ad741b2d0710fd3fb83ade47c506eb576a2222 Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Thu, 7 Dec 2023 18:28:24 +0200 Subject: Avoid deprecated API QWARN() is deprecated in Qt6 and QByteArray::count() in Qt 6.4. Both easy to avoid. Translatable output in a unit test seems silly. Change-Id: I9fab798cff548534789bb2830c00c650bed84143 Reviewed-by: Damien Caliste Reviewed-by: Matthew Vogt --- tests/tst_qlogsystem/tst_qlogsystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/tst_qlogsystem/tst_qlogsystem.cpp b/tests/tst_qlogsystem/tst_qlogsystem.cpp index 56e2693d..2b213df5 100644 --- a/tests/tst_qlogsystem/tst_qlogsystem.cpp +++ b/tests/tst_qlogsystem/tst_qlogsystem.cpp @@ -296,6 +296,6 @@ void tst_QLogSystem::sysLoggerOutput() LogSystem::getInstance().log(LlDbg, "Test: '%d' '%s' '%.2f'", 12, "string", 12.25); LogSystem::getInstance().clear(); - QWARN (qPrintable(tr("Now You should see the string") + expected + tr("at syslog output LOG_LOCAL7, LOG_INFO"))); + qWarning() << "Now You should see the string" << expected << "at syslog output LOG_LOCAL7, LOG_INFO"; #endif // defined(Q_OS_UNIX) } -- cgit v1.2.3