]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Make it build with QT_STRICT_ITERATORS
authorKevin Ottens <ervin@kde.org>
Wed, 16 Oct 2013 17:24:01 +0000 (19:24 +0200)
committerKevin Ottens <ervin@kde.org>
Wed, 16 Oct 2013 17:24:01 +0000 (19:24 +0200)
src/dolphinmainwindow.cpp

index 8767988ca7571dd2c7906f50c511d5f074adbde0..d8973053c1ab13bbd96c8aeec1cd8b36cc488cd2 100644 (file)
@@ -271,12 +271,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 = urlsToOpen.begin();
-    while (it != urlsToOpen.end()) {
+    QList<KUrl>::const_iterator it = urlsToOpen.constBegin();
+    while (it != urlsToOpen.constEnd()) {
         openNewTab(*it);
         ++it;
 
-        if (hasSplitView && (it != urlsToOpen.end())) {
+        if (hasSplitView && (it != urlsToOpen.constEnd())) {
             const int tabIndex = m_viewTab.count() - 1;
             m_viewTab[tabIndex].secondaryView->setUrl(*it);
             ++it;