aboutsummaryrefslogtreecommitdiffstats
path: root/src/logging.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-29 18:22:50 +0100
committerGravatar Sadie Powell2026-03-29 18:22:50 +0100
commitad096125ae65e198e3f12ebe0d5583382bdf7685 (patch)
treebea5c19063d576735142e61179712f5e611879f2 /src/logging.cpp
parentFix various minor Doxygen issues. (diff)
Replace some C-style array usage with Modern C++.
Diffstat (limited to 'src/logging.cpp')
-rw-r--r--src/logging.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/logging.cpp b/src/logging.cpp
index f0012052a..4cb5b3a6b 100644
--- a/src/logging.cpp
+++ b/src/logging.cpp
@@ -298,8 +298,7 @@ void Log::Manager::OpenLogs(bool requiremethods)
void Log::Manager::RegisterServices()
{
- Service::Provider* coreloggers[] = { &filelog, &stderrlog, &stdoutlog };
- ServerInstance->Modules.AddServices(coreloggers, sizeof(coreloggers)/sizeof(Service::Provider*));
+ ServerInstance->Modules.AddService(filelog, stderrlog, stdoutlog);
}
void Log::Manager::UnloadEngine(const Engine* engine)