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.
pull/2140/head
sunlong169 4 years ago committed by GitHub
parent 8826011c81
commit acbf18d0dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,7 +37,7 @@ public:
protected: protected:
// sink formatter // sink formatter
std::unique_ptr<spdlog::formatter> formatter_; std::unique_ptr<spdlog::formatter> formatter_;
mutable Mutex mutex_; Mutex mutex_;
virtual void sink_it_(const details::log_msg &msg) = 0; virtual void sink_it_(const details::log_msg &msg) = 0;
virtual void flush_() = 0; virtual void flush_() = 0;

Loading…
Cancel
Save