diff options
| author | Kevin Ottens <[email protected]> | 2013-10-16 19:24:01 +0200 |
|---|---|---|
| committer | Kevin Ottens <[email protected]> | 2013-10-16 19:24:01 +0200 |
| commit | 011299eb6ee8397f9d716e2196801b748c511adb (patch) | |
| tree | b9fdc94b0f3a561016925215ed9696f970ebb0cd /src/dolphinmainwindow.cpp | |
| parent | 8bbddb3b6324dfa22d0a57805d387d19db9a3afe (diff) | |
Make it build with QT_STRICT_ITERATORS
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 8767988ca..d8973053c 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -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; |
