summaryrefslogtreecommitdiff
path: root/user/libfm-qt/libfm-qt-0.11.2-const-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/libfm-qt/libfm-qt-0.11.2-const-fixes.patch')
-rw-r--r--user/libfm-qt/libfm-qt-0.11.2-const-fixes.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/user/libfm-qt/libfm-qt-0.11.2-const-fixes.patch b/user/libfm-qt/libfm-qt-0.11.2-const-fixes.patch
new file mode 100644
index 000000000..f9732fce2
--- /dev/null
+++ b/user/libfm-qt/libfm-qt-0.11.2-const-fixes.patch
@@ -0,0 +1,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);