Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Chabrowski <dantezstudio@gmail.com>2018-02-25 01:56:56 +0300
committerDaniel Chabrowski <dantezstudio@gmail.com>2018-02-25 01:56:56 +0300
commitfb6df0512fc995d07f757a220af2dae927edffe8 (patch)
treebe2dadc29380b1b96c7732952b0375bfb54206a4 /include/spdlog/formatter.h
parent7f4c1bb77c24676419d5b042f79af801c52a8bcd (diff)
modernize-use-override
Diffstat (limited to 'include/spdlog/formatter.h')
-rw-r--r--include/spdlog/formatter.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/spdlog/formatter.h b/include/spdlog/formatter.h
index b69d7eb1..580deac2 100644
--- a/include/spdlog/formatter.h
+++ b/include/spdlog/formatter.h
@@ -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"
-