diff -Nurd pcmanfm-qt-0.11.3/pcmanfm/mainwindow.cpp pcmanfm-qt-0.11.3.new/pcmanfm/mainwindow.cpp --- pcmanfm-qt-0.11.3/pcmanfm/mainwindow.cpp 2017-01-14 02:13:45.000000000 +0000 +++ pcmanfm-qt-0.11.3.new/pcmanfm/mainwindow.cpp 2017-10-12 20:44:25.731044585 +0000 @@ -970,8 +970,8 @@ void MainWindow::onBookmarksChanged(FmBookmarks* bookmarks, MainWindow* pThis) { // delete existing items QList actions = pThis->ui.menu_Bookmarks->actions(); - QList::const_iterator it = actions.begin(); - QList::const_iterator last_it = actions.end() - 2; + QList::const_iterator it = actions.constBegin(); + QList::const_iterator last_it = actions.constEnd() - 2; while(it != last_it) { QAction* action = *it; diff -Nurd pcmanfm-qt-0.11.3/pcmanfm/preferencesdialog.cpp pcmanfm-qt-0.11.3.new/pcmanfm/preferencesdialog.cpp --- pcmanfm-qt-0.11.3/pcmanfm/preferencesdialog.cpp 2017-01-14 02:13:45.000000000 +0000 +++ pcmanfm-qt-0.11.3.new/pcmanfm/preferencesdialog.cpp 2017-10-12 20:45:17.324377059 +0000 @@ -90,7 +90,7 @@ iconThemes.remove("hicolor"); // remove hicolor, which is only a fallback QHash::const_iterator it; - for(it = iconThemes.begin(); it != iconThemes.end(); ++it) { + for(it = iconThemes.constBegin(); it != iconThemes.constEnd(); ++it) { ui.iconTheme->addItem(it.value(), it.key()); } ui.iconTheme->model()->sort(0); // sort the list of icon theme names