aboutsummaryrefslogtreecommitdiff
path: root/src/configparser.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-01 18:10:11 +0100
committerGravatar Sadie Powell2021-04-01 18:10:11 +0100
commitef24ec632da12f272eddcf9924eacde9260597a2 (patch)
tree1d9561525e174249c2776fae38ce6c757a17a901 /src/configparser.cpp
parentImplement support for random spamtrap channels in the LIST output. (diff)
Constify variables within loops.
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r--src/configparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp
index b4814123d..2622b7016 100644
--- a/src/configparser.cpp
+++ b/src/configparser.cpp
@@ -400,7 +400,7 @@ void ParseStack::DoInclude(std::shared_ptr<ConfigTag> tag, int flags)
const std::string includedir = ServerInstance->Config->Paths.PrependConfig(name);
try
{
- for (auto& entry : std::filesystem::directory_iterator(includedir))
+ for (const auto& entry : std::filesystem::directory_iterator(includedir))
{
if (!entry.is_regular_file() || !InspIRCd::Match(entry.path().filename(), "*.conf"))
continue;