summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxpathview.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-04-28 23:49:17 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-04-28 23:49:17 (GMT)
commit978cf2724888f13ba1a0ebab65056c05fe112dad (patch)
treec5f57a95b18bef2c67211d59e8478a79cda0103c /src/declarative/fx/qfxpathview.cpp
parentef26f5c258500d98735ef3f90fa9c9576a945d56 (diff)
downloadQt-978cf2724888f13ba1a0ebab65056c05fe112dad.zip
Qt-978cf2724888f13ba1a0ebab65056c05fe112dad.tar.gz
Qt-978cf2724888f13ba1a0ebab65056c05fe112dad.tar.bz2
Some foreach remove/improve.
Diffstat (limited to 'src/declarative/fx/qfxpathview.cpp')
-rw-r--r--src/declarative/fx/qfxpathview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxpathview.cpp b/src/declarative/fx/qfxpathview.cpp
index 59c7cd1..8bf0a25 100644
--- a/src/declarative/fx/qfxpathview.cpp
+++ b/src/declarative/fx/qfxpathview.cpp
@@ -616,7 +616,7 @@ void QFxPathViewPrivate::regenerate()
void QFxPathViewPrivate::updateItem(QFxItem *item, qreal percent)
{
if(QObject *obj = QFxPathView::attachedProperties.value(item)) {
- foreach(QString attr, path->attributes())
+ foreach(const QString &attr, path->attributes())
static_cast<QFxPathViewAttached *>(obj)->setValue(attr.toLatin1(), path->attributeAt(attr, percent));
}