aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging/Log.cpp
diff options
context:
space:
mode:
authorUjp8LfXBJ6wCPR <github@lillecarl.com>2020-02-29 13:20:05 +0100
committerGitHub <noreply@github.com>2020-02-29 13:20:05 +0100
commitfb75a958f02695f166481033203869940d98b537 (patch)
tree1bff3b8b4a267de83708855bab471ff9de7bb36a /src/common/Logging/Log.cpp
parent2b14b720da2bc38c84f373cb3ff4bcc24c1ddcf0 (diff)
Part1: Modernize codebase with Clang-Tidy range based loops (#24164)
Diffstat (limited to 'src/common/Logging/Log.cpp')
-rw-r--r--src/common/Logging/Log.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Logging/Log.cpp b/src/common/Logging/Log.cpp
index 39d17de1f04..77820929a66 100644
--- a/src/common/Logging/Log.cpp
+++ b/src/common/Logging/Log.cpp
@@ -322,8 +322,8 @@ void Log::outCharDump(char const* str, uint32 accountId, uint64 guid, char const
void Log::SetRealmId(uint32 id)
{
- for (auto it = appenders.begin(); it != appenders.end(); ++it)
- it->second->setRealmId(id);
+ for (std::pair<uint8 const, std::unique_ptr<Appender>>& appender : appenders)
+ appender.second->setRealmId(id);
}
void Log::Close()