summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modlistsortproxy.cpp4
-rw-r--r--src/organizercore.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp
index b56dff78..ab6dd852 100644
--- a/src/modlistsortproxy.cpp
+++ b/src/modlistsortproxy.cpp
@@ -180,8 +180,8 @@ bool ModListSortProxy::lessThan(const QModelIndex &left,
}
} break;
case ModList::COL_CONTENT: {
- auto& lContents = leftMod->getContents();
- auto& rContents = rightMod->getContents();
+ const auto& lContents = leftMod->getContents();
+ const auto& rContents = rightMod->getContents();
unsigned int lValue = 0;
unsigned int rValue = 0;
m_Organizer->modDataContents().forEachContentIn(lContents, [&lValue](auto const& content) {
diff --git a/src/organizercore.h b/src/organizercore.h
index c08a1495..00765694 100644
--- a/src/organizercore.h
+++ b/src/organizercore.h
@@ -125,8 +125,8 @@ public:
}
/**
- * Apply fnIn to each content whose ID is in the given set, and fnOut to each content not in the
- * given set, excluding filter-only content (from both cases) unless includeFilter is true..
+ * @brief Apply fnIn to each content whose ID is in the given set, and fnOut to each content not in the
+ * given set, excluding filter-only content (from both cases) unless includeFilter is true.
*
* @param ids The set of content IDs.
* @param fnIn Function to apply to content whose IDs are in ids.