From acbf18d0dd793452395a9b4de26dfd413d91bf59 Mon Sep 17 00:00:00 2001 From: sunlong169 <71108420+sunlong169@users.noreply.github.com> Date: Sat, 16 Oct 2021 23:52:01 +0800 Subject: [PATCH] No need to define the Mutex mutex_ as mutable there is no const method. There's no need to define the Mutex mutex_ as mutable since class base_sink has no const method. --- include/spdlog/sinks/base_sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/base_sink.h b/include/spdlog/sinks/base_sink.h index a0624e94..21c5545f 100644 --- a/include/spdlog/sinks/base_sink.h +++ b/include/spdlog/sinks/base_sink.h @@ -37,7 +37,7 @@ public: protected: // sink formatter std::unique_ptr formatter_; - mutable Mutex mutex_; + Mutex mutex_; virtual void sink_it_(const details::log_msg &msg) = 0; virtual void flush_() = 0;