From 36489c7d8fd6f1b79f29edc5d1f6c2d8b231adf9 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Thu, 21 Jan 2021 19:21:27 +0100 Subject: Add const-qualifier to for loop variable. --- src/profile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/profile.cpp') 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); -- cgit v1.3.1