From 5cd24f30338c10539c6434a742ff0e8ad5e4ff91 Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 26 Sep 2018 15:26:27 +0300 Subject: [PATCH] Replaced SPDLOG_FINAL macro with final --- include/spdlog/sinks/wincolor_sink.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);