tst_QList: port away from qsnprintf()
Change-Id: I9ad99a06b2d645108eae3bf9d74e08d95d31f8fc Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> (cherry picked from commit a90a1ebac8b07e6cb8e0b62eefb714a77bb3ed8f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
57ad4caa7b
commit
a0c9b5f020
@ -8,6 +8,7 @@
|
|||||||
#include <QAtomicScopedValueRollback>
|
#include <QAtomicScopedValueRollback>
|
||||||
#include <qlist.h>
|
#include <qlist.h>
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
|
|
||||||
#ifdef QT_COMPILER_HAS_LWG3346
|
#ifdef QT_COMPILER_HAS_LWG3346
|
||||||
# if __has_include(<concepts>)
|
# if __has_include(<concepts>)
|
||||||
@ -985,7 +986,7 @@ namespace QTest {
|
|||||||
char *toString(const ConstructionCounted &cc)
|
char *toString(const ConstructionCounted &cc)
|
||||||
{
|
{
|
||||||
char *str = new char[5];
|
char *str = new char[5];
|
||||||
qsnprintf(str, 4, "%d", cc.i);
|
std::snprintf(str, 4, "%d", cc.i);
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user