diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-10-26 13:46:43 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-10-31 15:38:27 +0000 |
commit | 4ca6d6bfb0071aa03744e292f688ef69772a5a47 (patch) | |
tree | e044ed382b28e70c04e5faf3dc986f108fb3ae2b /src/designer/src/components/formeditor/qdesigner_resource.cpp | |
parent | 8829f0044cd54f0a0357f5022a63969d37aa2648 (diff) |
Qt Designer: Remove use of Java-style map iterators
Use STL style iterators instead.
Change-Id: Id82546f667059c69521507f3a3b6b997de5cd6ba
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/designer/src/components/formeditor/qdesigner_resource.cpp')
-rw-r--r-- | src/designer/src/components/formeditor/qdesigner_resource.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/designer/src/components/formeditor/qdesigner_resource.cpp b/src/designer/src/components/formeditor/qdesigner_resource.cpp index c412637d5..d45e1b9d3 100644 --- a/src/designer/src/components/formeditor/qdesigner_resource.cpp +++ b/src/designer/src/components/formeditor/qdesigner_resource.cpp @@ -273,9 +273,8 @@ DomProperty *QDesignerResourceBuilder::saveResource(const QDir &workingDirectory DomResourceIcon *ri = new DomResourceIcon; if (!theme.isEmpty()) ri->setAttributeTheme(theme); - QMapIterator<QPair<QIcon::Mode, QIcon::State>, PropertySheetPixmapValue> itPix(pixmaps); - while (itPix.hasNext()) { - const QIcon::Mode mode = itPix.next().key().first; + for (auto itPix = pixmaps.cbegin(), end = pixmaps.cend(); itPix != end; ++itPix) { + const QIcon::Mode mode = itPix.key().first; const QIcon::State state = itPix.key().second; DomResourcePixmap *rp = new DomResourcePixmap; const PropertySheetPixmapValue pix = itPix.value(); |