diff options
| author | 2021-04-01 18:10:11 +0100 | |
|---|---|---|
| committer | 2021-04-01 18:10:11 +0100 | |
| commit | ef24ec632da12f272eddcf9924eacde9260597a2 (patch) | |
| tree | 1d9561525e174249c2776fae38ce6c757a17a901 /src/modulemanager.cpp | |
| parent | Implement support for random spamtrap channels in the LIST output. (diff) | |
Constify variables within loops.
Diffstat (limited to 'src/modulemanager.cpp')
| -rw-r--r-- | src/modulemanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index e3c220003..4aa3dc764 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -129,7 +129,7 @@ void ModuleManager::LoadCoreModules(std::map<std::string, ServiceList>& servicem try { - for (auto& entry : std::filesystem::directory_iterator(ServerInstance->Config->Paths.Module)) + for (const auto& entry : std::filesystem::directory_iterator(ServerInstance->Config->Paths.Module)) { const std::string name = entry.path().filename(); if (!entry.is_regular_file() || !InspIRCd::Match(name, "core_*" DLL_EXTENSION)) |
