summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@nokia.com>2009-09-22 11:30:49 (GMT)
committerMarco Bubke <marco.bubke@nokia.com>2009-09-22 11:30:49 (GMT)
commitc00ba3cf914ddc842e06d00cfd0fe4b095a884c4 (patch)
tree4dedd820fdc18784f4f706d7b16cd646c699adb6 /src/declarative/qml
parent2df9ae49343125e1aa04f97518bb1556811a1600 (diff)
downloadQt-c00ba3cf914ddc842e06d00cfd0fe4b095a884c4.zip
Qt-c00ba3cf914ddc842e06d00cfd0fe4b095a884c4.tar.gz
Qt-c00ba3cf914ddc842e06d00cfd0fe4b095a884c4.tar.bz2
Replace begin()/end() with constBegin()/constEnd() to avoid detach in
~QmlEngine Reviewed-by: Kai Koehne
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qmlengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp
index 23c0639..4be5230 100644
--- a/src/declarative/qml/qmlengine.cpp
+++ b/src/declarative/qml/qmlengine.cpp
@@ -209,7 +209,7 @@ QmlEnginePrivate::~QmlEnginePrivate()
clear(bindValues[ii]);
for(int ii = 0; ii < parserStatus.count(); ++ii)
clear(parserStatus[ii]);
- for(QHash<int, QmlCompiledData*>::ConstIterator iter = m_compositeTypes.begin(); iter != m_compositeTypes.end(); ++iter)
+ for(QHash<int, QmlCompiledData*>::ConstIterator iter = m_compositeTypes.constBegin(); iter != m_compositeTypes.constEnd(); ++iter)
(*iter)->release();
}