diff --git a/include/spdlog/sinks/wincolor_sink.h b/include/spdlog/sinks/wincolor_sink.h index 5555d80188febd0a9a0ad933d4e12e1f0708c67a..5f1c2771f35390dacb97d3167ff61663876653db 100644 --- a/include/spdlog/sinks/wincolor_sink.h +++ b/include/spdlog/sinks/wincolor_sink.h @@ -66,7 +66,7 @@ public: // change the color for the given level void set_color(level::level_enum level, WORD color) { - std::lock_guard<Mutex> lock(_mutex); + std::lock_guard<Mutex> lock(base_sink<Mutex>::_mutex); colors_[level] = color; } @@ -91,7 +91,7 @@ template<class Mutex> class wincolor_stdout_sink: public wincolor_sink<Mutex> { public: - wincolor_stdout_sink():wincolor_sink(GetStdHandle(STD_OUTPUT_HANDLE)) + wincolor_stdout_sink() : wincolor_sink<Mutex>(GetStdHandle(STD_OUTPUT_HANDLE)) {} }; @@ -105,7 +105,7 @@ template<class Mutex> class wincolor_stderr_sink: public wincolor_sink<Mutex> { public: - wincolor_stderr_sink():wincolor_sink(GetStdHandle(STD_ERROR_HANDLE)) + wincolor_stderr_sink() : wincolor_sink<Mutex>(GetStdHandle(STD_ERROR_HANDLE)) {} };