OSDN Git Service

Compile fix
authorLeandro Melo <leandro.melo@nokia.com>
Mon, 26 Sep 2011 14:57:31 +0000 (16:57 +0200)
committerLeandro T. C. Melo <leandro.melo@nokia.com>
Mon, 26 Sep 2011 15:01:53 +0000 (17:01 +0200)
Change-Id: I1f2a0ef6ab0eae28d1e830107af213df89573aaf
Reviewed-on: http://codereview.qt-project.org/5551
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
src/plugins/projectexplorer/settingsaccessor.cpp

index edacf0c..c34e751 100644 (file)
@@ -460,8 +460,8 @@ void splitSharedSettings(QVariantMap *sharedMap, const QVariantMap &fullMap)
         *sharedMap = fullMap;
     } else {
         const QSet<QString> &shared = QSet<QString>::fromList(controlKey);
-        QVariantMap::iterator it = fullMap.begin();
-        QVariantMap::iterator eit = fullMap.end();
+        QVariantMap::const_iterator it = fullMap.begin();
+        QVariantMap::const_iterator eit = fullMap.end();
         for (; it != eit; ++it) {
             const QString &key = it.key();
             const QVariant &value = it.value();