From: Wolfgang Bauer Date: Wed, 6 Nov 2013 16:53:43 +0000 (+0100) Subject: Make it build with QT_STRICT_ITERATORS X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/b1448a0c32135153ca0b20dff8be901d87e129a5 Make it build with QT_STRICT_ITERATORS Redo commit 81c99da7e0043d433756d1f062bf30845db93c66 by Kevin Ottens Was removed by mistake during the last merge with KDE/4.11, sorry! --- diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 4c3295434..a4dbb6f34 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -258,12 +258,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 = dirs.begin(); - while (it != dirs.end()) { + QList::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;