summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtest.h
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-12-12 12:23:02 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-12 06:43:44 +0100
commit949aaf9a2ae2d7d012550a2da26fbaa2ef40f288 (patch)
treeb795b98c6b8c8c8764bd14019d2abd6c82896bea /src/testlib/qtest.h
parente179afdbb6fa7bcdc5736dcf1e7d8847dd3c976c (diff)
Stop using QTest::qt_snprintf() in testlib.
After the previous commit, QTest::qt_snprintf() is equivalent to qsnprintf(), so just use that instead. Change-Id: I89ad6e3749ba5efb1926b0b618a904e8baca9f52 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'src/testlib/qtest.h')
-rw-r--r--src/testlib/qtest.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/testlib/qtest.h b/src/testlib/qtest.h
index 950b5d537b..6bce44686d 100644
--- a/src/testlib/qtest.h
+++ b/src/testlib/qtest.h
@@ -195,18 +195,18 @@ inline bool qCompare(QStringList const &t1, QStringList const &t2,
msg[0] = '\0';
bool isOk = true;
if (t1.count() != t2.count()) {
- qt_snprintf(msg, 1024, "Compared QStringLists have different sizes.\n"
- " Actual (%s) size : '%d'\n"
- " Expected (%s) size: '%d'", actual, t1.count(), expected, t2.count());
+ qsnprintf(msg, 1024, "Compared QStringLists have different sizes.\n"
+ " Actual (%s) size : '%d'\n"
+ " Expected (%s) size: '%d'", actual, t1.count(), expected, t2.count());
isOk = false;
}
const int min = qMin(t1.count(), t2.count());
for (int i = 0; isOk && i < min; ++i) {
if (t1.at(i) != t2.at(i)) {
- qt_snprintf(msg, 1024, "Compared QStringLists differ at index %d.\n"
- " Actual (%s) : '%s'\n"
- " Expected (%s) : '%s'", i, actual, t1.at(i).toLatin1().constData(),
- expected, t2.at(i).toLatin1().constData());
+ qsnprintf(msg, 1024, "Compared QStringLists differ at index %d.\n"
+ " Actual (%s) : '%s'\n"
+ " Expected (%s) : '%s'", i, actual, t1.at(i).toLatin1().constData(),
+ expected, t2.at(i).toLatin1().constData());
isOk = false;
}
}