summaryrefslogtreecommitdiff
path: root/src/profile.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-21 19:21:27 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-21 19:21:27 +0100
commit36489c7d8fd6f1b79f29edc5d1f6c2d8b231adf9 (patch)
treecfbfcec46cb48292d4cd5904e19cd57e42067b5a /src/profile.cpp
parentffb820c701617721b82515be330a3f604b26dd7b (diff)
Add const-qualifier to for loop variable.
Diffstat (limited to 'src/profile.cpp')
-rw-r--r--src/profile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profile.cpp b/src/profile.cpp
index 098cff6e..c45ecd30 100644
--- a/src/profile.cpp
+++ b/src/profile.cpp
@@ -269,7 +269,7 @@ void Profile::createTweakedIniFile()
return;
}
- for (auto& [priority, index] : m_ModIndexByPriority) {
+ for (const auto& [priority, index] : m_ModIndexByPriority) {
if (m_ModStatus[index].m_Enabled) {
ModInfo::Ptr modInfo = ModInfo::getByIndex(index);
mergeTweaks(modInfo, tweakedIni);