Make it build with QT_STRICT_ITERATORS

This commit is contained in:
Kevin Ottens 2013-10-16 19:24:01 +02:00
parent 950e6f5d15
commit 81c99da7e0

View 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, // Open each directory inside a new tab. If the "split view" option has been enabled,
// always show two directories within one tab. // always show two directories within one tab.
QList<KUrl>::const_iterator it = urlsToOpen.begin(); QList<KUrl>::const_iterator it = urlsToOpen.constBegin();
while (it != urlsToOpen.end()) { while (it != urlsToOpen.constEnd()) {
openNewTab(*it); openNewTab(*it);
++it; ++it;
if (hasSplitView && (it != urlsToOpen.end())) { if (hasSplitView && (it != urlsToOpen.constEnd())) {
const int tabIndex = m_viewTab.count() - 1; const int tabIndex = m_viewTab.count() - 1;
m_viewTab[tabIndex].secondaryView->setUrl(*it); m_viewTab[tabIndex].secondaryView->setUrl(*it);
++it; ++it;