mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
modernize-use-override
This commit is contained in:
@@ -21,18 +21,18 @@ class flag_formatter;
|
||||
class formatter
|
||||
{
|
||||
public:
|
||||
virtual ~formatter() {}
|
||||
virtual ~formatter() = default;
|
||||
virtual void format(details::log_msg& msg) = 0;
|
||||
};
|
||||
|
||||
class pattern_formatter SPDLOG_FINAL : public formatter
|
||||
{
|
||||
|
||||
public:
|
||||
explicit pattern_formatter(const std::string& pattern, pattern_time_type pattern_time = pattern_time_type::local, const std::string& eol = spdlog::details::os::default_eol);
|
||||
pattern_formatter(const pattern_formatter&) = delete;
|
||||
pattern_formatter& operator=(const pattern_formatter&) = delete;
|
||||
void format(details::log_msg& msg) override;
|
||||
|
||||
private:
|
||||
const std::string _eol;
|
||||
const std::string _pattern;
|
||||
@@ -45,4 +45,3 @@ private:
|
||||
}
|
||||
|
||||
#include "details/pattern_formatter_impl.h"
|
||||
|
||||
|
Reference in New Issue
Block a user