diff options
author | Pekka Vuorela <pvuorela@iki.fi> | 2023-12-07 18:28:24 +0200 |
---|---|---|
committer | Pekka Vuorela <pvuorela@iki.fi> | 2023-12-14 09:27:01 +0200 |
commit | d0ad741b2d0710fd3fb83ade47c506eb576a2222 (patch) | |
tree | 9ba0ad22b6b3fa261394cc2007886d61ff3f2eb5 /tests | |
parent | e535ba43f112f43bd07da2643e4998450bb62f7e (diff) |
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 <dcaliste@free.fr>
Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tst_qlogsystem/tst_qlogsystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |