diff options
author | Ujp8LfXBJ6wCPR <github@lillecarl.com> | 2020-02-29 13:20:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-29 13:20:05 +0100 |
commit | fb75a958f02695f166481033203869940d98b537 (patch) | |
tree | 1bff3b8b4a267de83708855bab471ff9de7bb36a /src/common/Logging/Logger.cpp | |
parent | 2b14b720da2bc38c84f373cb3ff4bcc24c1ddcf0 (diff) |
Part1: Modernize codebase with Clang-Tidy range based loops (#24164)
Diffstat (limited to 'src/common/Logging/Logger.cpp')
-rw-r--r-- | src/common/Logging/Logger.cpp | 6 |
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); } |