aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging/Logger.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/Logger.cpp
parent32a91914064cbc22bd85a649bf251b6e6d7fff12 (diff)
Part1: Modernize codebase with Clang-Tidy range based loops (#24164)
(cherry picked from commit fb75a958f02695f166481033203869940d98b537)
Diffstat (limited to 'src/common/Logging/Logger.cpp')
-rw-r--r--src/common/Logging/Logger.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/Logging/Logger.cpp b/src/common/Logging/Logger.cpp
index 8e2927c08bd..63653770ade 100644
--- a/src/common/Logging/Logger.cpp
+++ b/src/common/Logging/Logger.cpp
@@ -54,7 +54,7 @@ void Logger::write(LogMessage* message) const
return;
}
- for (auto it = appenders.begin(); it != appenders.end(); ++it)
- if (it->second)
- it->second->write(message);
+ for (std::pair<uint8 const, Appender*> const& appender : appenders)
+ if (appender.second)
+ appender.second->write(message);
}