qt6-bb10/tests/auto/corelib/kernel/qdeadlinetimer
Marc Mutz 57ad4caa7b tst_QDeadlineTimer: fix format-string in toString() implementation
The second value (like the first) has type qint64 (aka long long), so
%d is wrong; need to use %lld instead.

Found while porting to std::snprintf() (qsnprintf() never actually got
the __attribute__((printf)), so compilers didn't warn).

Drive-by replace qAbs() with std::abs().

Amends 13c3558fe9.

Pick-to: 6.7 6.5
Change-Id: I9082a1aceefe8a5b04ad0d5725ab666e23483b29
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
(cherry picked from commit 61e4be2b62f9b6556a145f226850bf5e62d53e9d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-07-22 21:00:13 +00:00
..
BLACKLIST Blacklist tst_QDeadlineTimer::stdchrono on Windows/clang 2020-12-21 10:23:15 +01:00
CMakeLists.txt QDeadlineTimer: use new comparison helper macros 2024-04-18 20:55:50 +02:00
tst_qdeadlinetimer.cpp tst_QDeadlineTimer: fix format-string in toString() implementation 2024-07-22 21:00:13 +00:00