tst_QList: port away from qsnprintf()
Pick-to: 6.8 Change-Id: I9ad99a06b2d645108eae3bf9d74e08d95d31f8fc Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
parent
20e81dbe29
commit
a90a1ebac8
@ -8,6 +8,7 @@
|
||||
#include <QAtomicScopedValueRollback>
|
||||
#include <qlist.h>
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
#ifdef QT_COMPILER_HAS_LWG3346
|
||||
# if __has_include(<concepts>)
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user