Commit 19c7e638 authored by gabime's avatar gabime

Added final keywords to pattern_formatter classes

parent 7efdcc26
...@@ -90,7 +90,7 @@ struct null_scoped_padder ...@@ -90,7 +90,7 @@ struct null_scoped_padder
}; };
template<typename ScopedPadder> template<typename ScopedPadder>
class name_formatter : public flag_formatter class name_formatter final : public flag_formatter
{ {
public: public:
explicit name_formatter(padding_info padinfo) explicit name_formatter(padding_info padinfo)
...@@ -106,7 +106,7 @@ public: ...@@ -106,7 +106,7 @@ public:
// log level appender // log level appender
template<typename ScopedPadder> template<typename ScopedPadder>
class level_formatter : public flag_formatter class level_formatter final : public flag_formatter
{ {
public: public:
explicit level_formatter(padding_info padinfo) explicit level_formatter(padding_info padinfo)
...@@ -123,7 +123,7 @@ public: ...@@ -123,7 +123,7 @@ public:
// short log level appender // short log level appender
template<typename ScopedPadder> template<typename ScopedPadder>
class short_level_formatter : public flag_formatter class short_level_formatter final : public flag_formatter
{ {
public: public:
explicit short_level_formatter(padding_info padinfo) explicit short_level_formatter(padding_info padinfo)
...@@ -156,7 +156,7 @@ static int to12h(const tm &t) ...@@ -156,7 +156,7 @@ static int to12h(const tm &t)
static std::array<const char *, 7> days{{"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}}; static std::array<const char *, 7> days{{"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}};
template<typename ScopedPadder> template<typename ScopedPadder>
class a_formatter : public flag_formatter class a_formatter final : public flag_formatter
{ {
public: public:
explicit a_formatter(padding_info padinfo) explicit a_formatter(padding_info padinfo)
...@@ -194,7 +194,7 @@ public: ...@@ -194,7 +194,7 @@ public:
static const std::array<const char *, 12> months{{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"}}; static const std::array<const char *, 12> months{{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"}};
template<typename ScopedPadder> template<typename ScopedPadder>
class b_formatter : public flag_formatter class b_formatter final : public flag_formatter
{ {
public: public:
explicit b_formatter(padding_info padinfo) explicit b_formatter(padding_info padinfo)
...@@ -214,7 +214,7 @@ static const std::array<const char *, 12> full_months{ ...@@ -214,7 +214,7 @@ static const std::array<const char *, 12> full_months{
{"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}}; {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}};
template<typename ScopedPadder> template<typename ScopedPadder>
class B_formatter : public flag_formatter class B_formatter final : public flag_formatter
{ {
public: public:
explicit B_formatter(padding_info padinfo) explicit B_formatter(padding_info padinfo)
......
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