From: Rohan McGovern Date: Thu, 7 Jul 2011 23:16:39 +0000 (+1000) Subject: Fixed compile of qtxmlpatterns against latest qtbase (`qs' macro) X-Git-Tag: 1.0_branch~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=859fce3c46278e15372af31570c363554443ed32;p=profile%2Fivi%2Fqtxmlpatterns.git Fixed compile of qtxmlpatterns against latest qtbase (`qs' macro) ee85e9cc10bc6874c892b09fa54b5dbd79854069 adds a macro qs(str), which breaks some code already using `qs' as a variable name. Change-Id: I92ee0f77499a5c815a940f719febee9d01b843cb Reviewed-on: http://codereview.qt.nokia.com/1331 Reviewed-by: Qt Sanity Bot Reviewed-by: Jonas Rabbe --- diff --git a/tests/auto/qxmlquery/tst_qxmlquery.cpp b/tests/auto/qxmlquery/tst_qxmlquery.cpp index eb372f7..024301e 100644 --- a/tests/auto/qxmlquery/tst_qxmlquery.cpp +++ b/tests/auto/qxmlquery/tst_qxmlquery.cpp @@ -994,14 +994,12 @@ void tst_QXmlQuery::evaluateToReceiver_data() const { QTest::addColumn("inputQuery"); - const QStringList qs(queries()); - - for(int i = 0; i < qs.size(); ++i) + foreach (QString const& query, queries()) { /* This outputs a URI specific to the environment, so we can't use it for this * particular test. */ - if(qs.at(i) != QLatin1String("staticBaseURI.xq")) - QTest::newRow(qs.at(i).toUtf8().constData()) << qs.at(i); + if (query != QLatin1String("staticBaseURI.xq")) + QTest::newRow(query.toUtf8().constData()) << query; } }