diff --git a/include/spdlog/sinks/wincolor_sink.h b/include/spdlog/sinks/wincolor_sink.h index 8c63e7fc..77c50a83 100644 --- a/include/spdlog/sinks/wincolor_sink.h +++ b/include/spdlog/sinks/wincolor_sink.h @@ -61,7 +61,7 @@ public: colors_[level] = color; } - void log(const details::log_msg &msg) SPDLOG_FINAL override + void log(const details::log_msg &msg) final override { std::lock_guard lock(mutex_); fmt::memory_buffer formatted; @@ -85,18 +85,18 @@ public: } } - void flush() SPDLOG_FINAL override + void flush() final override { // windows console always flushed? } - void set_pattern(const std::string &pattern) override SPDLOG_FINAL + void set_pattern(const std::string &pattern) override final { std::lock_guard lock(mutex_); formatter_ = std::unique_ptr(new pattern_formatter(pattern)); } - void set_formatter(std::unique_ptr sink_formatter) override SPDLOG_FINAL + void set_formatter(std::unique_ptr sink_formatter) override final { std::lock_guard lock(mutex_); formatter_ = std::move(sink_formatter);