summaryrefslogtreecommitdiff
path: root/tests/auto/corelib/global
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-01-23 12:03:36 +0100
committerMarc Mutz <marc.mutz@kdab.com>2015-02-12 19:40:04 +0000
commit05c38a9111320da311e5993faf12ce8e1f1713e8 (patch)
treeb1ca051511120d113e891333b8918f8d5a4748ef /tests/auto/corelib/global
parentabcb5471b75fe9879775ec16f0f12a1e30422789 (diff)
downloadqtbase-05c38a9111320da311e5993faf12ce8e1f1713e8.tar.gz
QtCore: assorted migrations to QString::asprintf
Change-Id: Ie99d3eeeced89dd8336717954fd5ca7117bb20b4 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/global')
-rw-r--r--tests/auto/corelib/global/qgetputenv/tst_qgetputenv.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/corelib/global/qgetputenv/tst_qgetputenv.cpp b/tests/auto/corelib/global/qgetputenv/tst_qgetputenv.cpp
index 4b03c9a56d..71a3419963 100644
--- a/tests/auto/corelib/global/qgetputenv/tst_qgetputenv.cpp
+++ b/tests/auto/corelib/global/qgetputenv/tst_qgetputenv.cpp
@@ -117,13 +117,13 @@ void tst_QGetPutEnv::intValue_data()
ROW(0xffffffff, 0, false);
const int bases[] = {10, 8, 16};
for (size_t i = 0; i < sizeof bases / sizeof *bases; ++i) {
- QTest::newRow(qPrintable(QString().sprintf("INT_MAX, base %d", bases[i])))
+ QTest::newRow(qPrintable(QString::asprintf("INT_MAX, base %d", bases[i])))
<< QByteArray::number(INT_MAX) << INT_MAX << true;
- QTest::newRow(qPrintable(QString().sprintf("INT_MAX+1, base %d", bases[i])))
+ QTest::newRow(qPrintable(QString::asprintf("INT_MAX+1, base %d", bases[i])))
<< QByteArray::number(qlonglong(INT_MAX) + 1) << 0 << false;
- QTest::newRow(qPrintable(QString().sprintf("INT_MIN, base %d", bases[i])))
+ QTest::newRow(qPrintable(QString::asprintf("INT_MIN, base %d", bases[i])))
<< QByteArray::number(INT_MIN) << INT_MIN << true;
- QTest::newRow(qPrintable(QString().sprintf("INT_MIN-1, base %d", bases[i])))
+ QTest::newRow(qPrintable(QString::asprintf("INT_MIN-1, base %d", bases[i])))
<< QByteArray::number(qlonglong(INT_MIN) - 1) << 0 << false;
};
}