diff options
| author | Wolfgang Bauer <[email protected]> | 2013-11-06 17:53:43 +0100 |
|---|---|---|
| committer | Wolfgang Bauer <[email protected]> | 2013-11-06 17:53:43 +0100 |
| commit | b1448a0c32135153ca0b20dff8be901d87e129a5 (patch) | |
| tree | 3412c5f5e8183edf167a5f9f2af867c52c202a3b /src/dolphinmainwindow.cpp | |
| parent | ee92ff0d4245dd3de65a381e3a02317f851c942a (diff) | |
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!
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<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; |
