From 887a104dd098813d2dff4077462d0f31daa7c5e8 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 5 Oct 2018 15:19:03 +0300 Subject: [PATCH] Fixed clang-tidy warning --- include/spdlog/sinks/ostream_sink.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/spdlog/sinks/ostream_sink.h b/include/spdlog/sinks/ostream_sink.h index e7816a78..5649b0b8 100644 --- a/include/spdlog/sinks/ostream_sink.h +++ b/include/spdlog/sinks/ostream_sink.h @@ -32,7 +32,9 @@ protected: sink::formatter_->format(msg, formatted); ostream_.write(formatted.data(), static_cast(formatted.size())); if (force_flush_) + { ostream_.flush(); + } } void flush_() override