aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging/Log.cpp
diff options
context:
space:
mode:
authorUjp8LfXBJ6wCPR <github@lillecarl.com>2020-02-29 13:20:05 +0100
committerShauren <shauren.trinity@gmail.com>2021-12-22 15:48:01 +0100
commit43aa763d04b524f50c73b55802b11780b75a2f82 (patch)
treed4c0d102ce1dfe8d1ccee852179c93612c341deb /src/common/Logging/Log.cpp
parent32a91914064cbc22bd85a649bf251b6e6d7fff12 (diff)
Part1: Modernize codebase with Clang-Tidy range based loops (#24164)
(cherry picked from commit fb75a958f02695f166481033203869940d98b537)
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 169dfbe80ba..59baea2c143 100644
--- a/src/common/Logging/Log.cpp
+++ b/src/common/Logging/Log.cpp
@@ -339,8 +339,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()