Commit b61be732 authored by Onno Broekmans's avatar Onno Broekmans

Fix compilation errors in "wincolor_sink.h"

parent b2ce6462
...@@ -66,7 +66,7 @@ public: ...@@ -66,7 +66,7 @@ public:
// change the color for the given level // change the color for the given level
void set_color(level::level_enum level, WORD color) 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; colors_[level] = color;
} }
...@@ -91,7 +91,7 @@ template<class Mutex> ...@@ -91,7 +91,7 @@ template<class Mutex>
class wincolor_stdout_sink: public wincolor_sink<Mutex> class wincolor_stdout_sink: public wincolor_sink<Mutex>
{ {
public: 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> ...@@ -105,7 +105,7 @@ template<class Mutex>
class wincolor_stderr_sink: public wincolor_sink<Mutex> class wincolor_stderr_sink: public wincolor_sink<Mutex>
{ {
public: public:
wincolor_stderr_sink():wincolor_sink(GetStdHandle(STD_ERROR_HANDLE)) wincolor_stderr_sink() : wincolor_sink<Mutex>(GetStdHandle(STD_ERROR_HANDLE))
{} {}
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment