From 916a686f8fd1615016bbd11c67abdc6c866e4840 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 20 Aug 2016 14:55:50 +0300 Subject: [PATCH] astyle --- include/spdlog/sinks/dist_sink.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/spdlog/sinks/dist_sink.h b/include/spdlog/sinks/dist_sink.h index 4c0e00f2..0c631fb2 100644 --- a/include/spdlog/sinks/dist_sink.h +++ b/include/spdlog/sinks/dist_sink.h @@ -30,33 +30,33 @@ public: virtual ~dist_sink() = default; protected: - std::vector> _sinks; + std::vector> _sinks; void _sink_it(const details::log_msg& msg) override { - for (auto &sink : _sinks) - sink->log(msg); + for (auto &sink : _sinks) + sink->log(msg); } - + public: void flush() override { std::lock_guard lock(_mutex); - for (auto &sink : _sinks) - sink->flush(); + for (auto &sink : _sinks) + sink->flush(); } void add_sink(std::shared_ptr sink) - { - std::lock_guard lock(_mutex); - _sinks.push_back(sink); + { + std::lock_guard lock(_mutex); + _sinks.push_back(sink); } void remove_sink(std::shared_ptr sink) { std::lock_guard lock(_mutex); - _sinks.erase(std::remove(_sinks.begin(), _sinks.end(), sink), _sinks.end()); + _sinks.erase(std::remove(_sinks.begin(), _sinks.end(), sink), _sinks.end()); } };