summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdir
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@nokia.com>2010-05-10 07:50:18 (GMT)
committerZeno Albisser <zeno.albisser@nokia.com>2010-05-10 07:52:02 (GMT)
commit5f52316a90b7e77295cefc5fac9d4acd0761d79f (patch)
treeabd31496f8651dc2175ee30aa921cd57b66b60d6 /tests/auto/qdir
parent0c3c7dae877732cb366241320e10ecf524c64092 (diff)
downloadQt-5f52316a90b7e77295cefc5fac9d4acd0761d79f.zip
Qt-5f52316a90b7e77295cefc5fac9d4acd0761d79f.tar.gz
Qt-5f52316a90b7e77295cefc5fac9d4acd0761d79f.tar.bz2
Fix tst_qdir to use const char* instead of QString for QTest::newRow
This is only needed to compile on msvc2005 Reviewed-by: TrustMe
Diffstat (limited to 'tests/auto/qdir')
-rw-r--r--tests/auto/qdir/tst_qdir.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qdir/tst_qdir.cpp b/tests/auto/qdir/tst_qdir.cpp
index b2dc960..4704bb8 100644
--- a/tests/auto/qdir/tst_qdir.cpp
+++ b/tests/auto/qdir/tst_qdir.cpp
@@ -1568,13 +1568,13 @@ void tst_QDir::isRoot_data()
QTest::addColumn<bool>("isRoot");
QString test = QDir::rootPath();
- QTest::newRow("rootPath " + test) << test << true;
+ QTest::newRow(QString("rootPath " + test).toLatin1()) << test << true;
test = QDir::rootPath().append("./");
- QTest::newRow("./ appended " + test) << test << false;
+ QTest::newRow(QString("./ appended " + test).toLatin1()) << test << false;
test = QDir(QDir::rootPath().append("./")).canonicalPath();
- QTest::newRow("canonicalPath " + test) << test << true;
+ QTest::newRow(QString("canonicalPath " + test).toLatin1()) << test << true;
test = QDir::rootPath().left(2);
- QTest::newRow("drive relative " + test) << test << false;
+ QTest::newRow(QString("drive relative " + test).toLatin1()) << test << false;
}
void tst_QDir::isRoot()