]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Make it build with QT_STRICT_ITERATORS
authorWolfgang Bauer <wbauer@tmo.at>
Wed, 6 Nov 2013 16:53:43 +0000 (17:53 +0100)
committerWolfgang Bauer <wbauer@tmo.at>
Wed, 6 Nov 2013 16:53:43 +0000 (17:53 +0100)
Redo commit 81c99da7e0043d433756d1f062bf30845db93c66 by Kevin Ottens

Was removed by mistake during the last merge with KDE/4.11, sorry!

src/dolphinmainwindow.cpp

index 4c3295434ab643708d55127df0248281f3494502..a4dbb6f341c02404baf3dc5d41e037689cae8446 100644 (file)
@@ -258,12 +258,12 @@ void DolphinMainWindow::openDirectories(const QList<KUrl>& dirs)
 
     // Open each directory inside a new tab. If the "split view" option has been enabled,
     // always show two directories within one tab.
-    QList<KUrl>::const_iterator it = dirs.begin();
-    while (it != dirs.end()) {
+    QList<KUrl>::const_iterator it = dirs.constBegin();
+    while (it != dirs.constEnd()) {
         openNewTab(*it);
         ++it;
 
-        if (hasSplitView && (it != dirs.end())) {
+        if (hasSplitView && (it != dirs.constEnd())) {
             const int tabIndex = m_viewTab.count() - 1;
             m_viewTab[tabIndex].secondaryView->setUrl(*it);
             ++it;