summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlxmllistmodel.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-12-04 14:31:17 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-12-04 14:31:17 (GMT)
commite524071986aba68956ff4cf18439e3d61ff90ec4 (patch)
tree5c7e609be153c4f0cbb708e6315d57fc1f9cf16b /src/declarative/util/qmlxmllistmodel.cpp
parentee9aee5d85345880d8269c02cfd3c2d86e89c9d3 (diff)
downloadQt-e524071986aba68956ff4cf18439e3d61ff90ec4.zip
Qt-e524071986aba68956ff4cf18439e3d61ff90ec4.tar.gz
Qt-e524071986aba68956ff4cf18439e3d61ff90ec4.tar.bz2
small cleanup
make use of QVariant::userType over Qvariant::type make use of char for 1-string character QCoreApplication::translate is static
Diffstat (limited to 'src/declarative/util/qmlxmllistmodel.cpp')
-rw-r--r--src/declarative/util/qmlxmllistmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/util/qmlxmllistmodel.cpp b/src/declarative/util/qmlxmllistmodel.cpp
index 6f8da9c..46ef739 100644
--- a/src/declarative/util/qmlxmllistmodel.cpp
+++ b/src/declarative/util/qmlxmllistmodel.cpp
@@ -259,7 +259,7 @@ void QmlXmlQuery::doQueryJob()
QXmlResultItems result;
QXmlQuery countquery;
countquery.bindVariable(QLatin1String("inputDocument"), &b);
- countquery.setQuery(namespaces + QLatin1String("count(") + prefix + QLatin1String(")"));
+ countquery.setQuery(namespaces + QLatin1String("count(") + prefix + QLatin1Char(')'));
countquery.evaluateTo(&result);
QXmlItem item(result.next());
if (item.isAtomicValue())
@@ -267,7 +267,7 @@ void QmlXmlQuery::doQueryJob()
}
//qDebug() << count;
- m_prefix = namespaces + prefix + QLatin1String("/");
+ m_prefix = namespaces + prefix + QLatin1Char('/');
m_data = xml;
if (count > 0)
m_size = count;