--- libfm-qt-0.11.2/src/folderview.cpp.old	2016-12-21 11:44:23.000000000 -0600
+++ libfm-qt-0.11.2/src/folderview.cpp	2017-10-12 19:33:06.121769699 -0500
@@ -727,7 +727,7 @@
     if(!selIndexes.isEmpty()) {
       PathList paths;
       QModelIndexList::const_iterator it;
-      for(it = selIndexes.begin(); it != selIndexes.end(); ++it) {
+      for(it = selIndexes.constBegin(); it != selIndexes.constEnd(); ++it) {
         FmFileInfo* file = model_->fileInfoFromIndex(*it);
         paths.pushTail(fm_file_info_get_path(file));
       }
--- libfm-qt-0.11.2/src/utilities.cpp.old	2016-12-21 11:44:23.000000000 -0600
+++ libfm-qt-0.11.2/src/utilities.cpp	2017-10-12 19:39:07.683967576 -0500
@@ -40,7 +40,7 @@
   QList<QUrl>::const_iterator it;
   FmPathList* pathList = fm_path_list_new();
 
-  for(it = urls.begin(); it != urls.end(); ++it) {
+  for(it = urls.constBegin(); it != urls.constEnd(); ++it) {
     QUrl url = *it;
     FmPath* path = fm_path_new_for_uri(url.toString().toUtf8());
     fm_path_list_push_tail(pathList, path);