summaryrefslogtreecommitdiff
path: root/user/libfm-qt/libfm-qt-0.11.2-const-fixes.patch
blob: f9732fce2e0b20ff4050ee86ee92c95b76f4751f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- 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);