From 5f52316a90b7e77295cefc5fac9d4acd0761d79f Mon Sep 17 00:00:00 2001 From: Zeno Albisser Date: Mon, 10 May 2010 09:50:18 +0200 Subject: Fix tst_qdir to use const char* instead of QString for QTest::newRow This is only needed to compile on msvc2005 Reviewed-by: TrustMe --- tests/auto/qdir/tst_qdir.cpp | 8 ++++---- 1 file 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("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() -- cgit v0.12