Skip to content

Commit

Permalink
Merge pull request #2140 from sunlong169/v1.x
Browse files Browse the repository at this point in the history
No need to define the Mutex mutex_ as mutable there is no const method.
  • Loading branch information
gabime committed Oct 16, 2021
2 parents 8826011 + acbf18d commit 6aafa89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/spdlog/sinks/base_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class base_sink : public sink
protected:
// sink formatter
std::unique_ptr<spdlog::formatter> formatter_;
mutable Mutex mutex_;
Mutex mutex_;

virtual void sink_it_(const details::log_msg &msg) = 0;
virtual void flush_() = 0;
Expand Down

0 comments on commit 6aafa89

Please sign in to comment.