diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-21 19:21:27 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-21 19:21:27 +0100 |
| commit | 36489c7d8fd6f1b79f29edc5d1f6c2d8b231adf9 (patch) | |
| tree | cfbfcec46cb48292d4cd5904e19cd57e42067b5a /src | |
| parent | ffb820c701617721b82515be330a3f604b26dd7b (diff) | |
Add const-qualifier to for loop variable.
Diffstat (limited to 'src')
| -rw-r--r-- | src/profile.cpp | 2 |
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); |
