From ef24ec632da12f272eddcf9924eacde9260597a2 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 1 Apr 2021 18:10:11 +0100 Subject: Constify variables within loops. --- src/modules/m_cloaking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_cloaking.cpp') diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 351339789..2000f1c40 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -445,7 +445,7 @@ class ModuleCloaking : public Module bool firstcloak = true; std::vector newcloaks; - for (auto& [_, tag] : tags) + for (const auto& [_, tag] : tags) { // Ensure that we have the parameter. const std::string key = tag->getString("key"); -- cgit v1.3.1-10-gc9f91