mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-13 01:10:26 +08:00
Added final keywords to pattern_formatter classes
This commit is contained in:
parent
7efdcc26fe
commit
19c7e63858
@ -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:
|
|||||||
|
|
||||||
// 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:
|
|||||||
|
|
||||||
// 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)
|
|||||||
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:
|
|||||||
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{
|
|||||||
{"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)
|
||||||
|
Loading…
Reference in New Issue
Block a user