summaryrefslogtreecommitdiff
path: root/src/modlistsortproxy.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-05-28 19:50:39 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2020-05-28 19:50:39 +0200
commit7f42698f4c733269a1b2b74d993186b362a9208a (patch)
tree62bd5ee7ae081a3adcba6c37a9f1edf04afc51b0 /src/modlistsortproxy.cpp
parentd2b7a1a321d5cf496860f717eccdfb9487621169 (diff)
Change auto& to const auto&.
Diffstat (limited to 'src/modlistsortproxy.cpp')
-rw-r--r--src/modlistsortproxy.cpp4
1 files changed, 2 insertions, 2 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) {