From a0c9b5f0200ed8d65d8e5401ba8e15f1dee971cf Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 22 Jul 2024 15:34:11 +0200 Subject: [PATCH] tst_QList: port away from qsnprintf() Change-Id: I9ad99a06b2d645108eae3bf9d74e08d95d31f8fc Reviewed-by: Ivan Solovev (cherry picked from commit a90a1ebac8b07e6cb8e0b62eefb714a77bb3ed8f) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/corelib/tools/qlist/tst_qlist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/auto/corelib/tools/qlist/tst_qlist.cpp b/tests/auto/corelib/tools/qlist/tst_qlist.cpp index 35d69e84339..0a04e816751 100644 --- a/tests/auto/corelib/tools/qlist/tst_qlist.cpp +++ b/tests/auto/corelib/tools/qlist/tst_qlist.cpp @@ -8,6 +8,7 @@ #include #include +#include #ifdef QT_COMPILER_HAS_LWG3346 # if __has_include() @@ -985,7 +986,7 @@ namespace QTest { char *toString(const ConstructionCounted &cc) { char *str = new char[5]; - qsnprintf(str, 4, "%d", cc.i); + std::snprintf(str, 4, "%d", cc.i); return str; } }