summaryrefslogtreecommitdiffstats
path: root/src/Log.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-02-28 18:41:12 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-02-28 18:41:12 +0100
commit5c89c0ec736770c94f97ced8a754c467d8536a09 (patch)
tree86badba4ac6bd68032ac0ec1d8a5e61dd0d02fd2 /src/Log.cpp
parent1a258711b00cef322cadedf35540d64ae18eb0b0 (diff)
downloaddabmux-5c89c0ec736770c94f97ced8a754c467d8536a09.tar.gz
dabmux-5c89c0ec736770c94f97ced8a754c467d8536a09.tar.bz2
dabmux-5c89c0ec736770c94f97ced8a754c467d8536a09.zip
Minor Log.{h,cpp} improvements
Diffstat (limited to 'src/Log.cpp')
-rw-r--r--src/Log.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Log.cpp b/src/Log.cpp
index 90548af..75380dd 100644
--- a/src/Log.cpp
+++ b/src/Log.cpp
@@ -68,10 +68,8 @@ void Logger::logstr(log_level_t level, std::string message)
message.resize(message.length()-1);
}
- for (std::list<LogBackend*>::iterator it = backends.begin();
- it != backends.end();
- ++it) {
- (*it)->log(level, message);
+ for (auto &backend : backends) {
+ backend->log(level, message);
}
{
@@ -85,3 +83,4 @@ LogLine Logger::level(log_level_t level)
{
return LogLine(this, level);
}
+