diff options
author | Sarah Smith <sarah.j.smith@nokia.com> | 2011-12-21 17:34:59 +1000 |
---|---|---|
committer | Sarah Jane Smith <sarah.j.smith@nokia.com> | 2011-12-21 08:39:08 +0100 |
commit | 6821d22e3cd293fda693a6bf4adb0ff10586395b (patch) | |
tree | 6daf081f46564cd3a883790659142826f9f910d1 | |
parent | 5e970f3a6fcbd8724a3dc6679b4d949a60c4fdd0 (diff) |
Don't use qt_snprintf outside of testlib.
qt_snprintf is an internal function of testlib which is likely to be
removed in the future. Therefore, it should not be called from outside
of testlib.
Change-Id: I22ede3fbfd6e899aa66f32a6666f13bdda86a849
Reviewed-by: Patrick Burke <patrick.burke@nokia.com>
Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
-rw-r--r-- | tests/shared/qtest_helpers.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/shared/qtest_helpers.h b/tests/shared/qtest_helpers.h index ed918f066..d7fb67aa5 100644 --- a/tests/shared/qtest_helpers.h +++ b/tests/shared/qtest_helpers.h @@ -63,7 +63,7 @@ namespace QTest { char *toString(const QVector4D &v) { char *msg = new char[128]; - qt_snprintf(msg, 128, "(%0.4f, %0.4f, %0.4f, %0.4f)", + qsnprintf(msg, 128, "(%0.4f, %0.4f, %0.4f, %0.4f)", v.x(), v.y(), v.z(), v.w()); return msg; } @@ -71,21 +71,21 @@ namespace QTest { char *toString(const QVector3D &v) { char *msg = new char[128]; - qt_snprintf(msg, 128, "(%0.4f, %0.4f, %0.4f)", v.x(), v.y(), v.z()); + qsnprintf(msg, 128, "(%0.4f, %0.4f, %0.4f)", v.x(), v.y(), v.z()); return msg; } char *toString(const QVector2D &v) { char *msg = new char[128]; - qt_snprintf(msg, 128, "(%0.4f, %0.4f)", v.x(), v.y()); + qsnprintf(msg, 128, "(%0.4f, %0.4f)", v.x(), v.y()); return msg; } char *toString(const QColor4ub &c) { char *msg = new char[128]; - qt_snprintf(msg, 128, "R: %0.2f, G: %0.2f, B: %0.2f, A: %0.2)", + qsnprintf(msg, 128, "R: %0.2f, G: %0.2f, B: %0.2f, A: %0.2)", c.redF(), c.greenF(), c.blueF(), c.alphaF()); return msg; } |