From: Kevin Ottens Date: Wed, 16 Oct 2013 17:24:01 +0000 (+0200) Subject: Make it build with QT_STRICT_ITERATORS X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/011299eb6ee8397f9d716e2196801b748c511adb Make it build with QT_STRICT_ITERATORS --- diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 8767988ca..d8973053c 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -271,12 +271,12 @@ void DolphinMainWindow::openDirectories(const QList& dirs) // Open each directory inside a new tab. If the "split view" option has been enabled, // always show two directories within one tab. - QList::const_iterator it = urlsToOpen.begin(); - while (it != urlsToOpen.end()) { + QList::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;