mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Add missing consts
This commit is contained in:
parent
a626ebbbec
commit
06b8193a14
@ -80,7 +80,7 @@ static int to12h(const tm& t)
|
||||
|
||||
//Abbreviated weekday name
|
||||
static const auto& days() {
|
||||
static std::array<std::string, 7> arr{ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
|
||||
static const std::array<std::string, 7> arr{ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
|
||||
return arr;
|
||||
}
|
||||
class a_formatter:public flag_formatter
|
||||
@ -93,7 +93,7 @@ class a_formatter:public flag_formatter
|
||||
|
||||
//Full weekday name
|
||||
static const auto& full_days() {
|
||||
static std::array<std::string, 7> arr{ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
|
||||
static const std::array<std::string, 7> arr{ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
|
||||
return arr;
|
||||
}
|
||||
class A_formatter:public flag_formatter
|
||||
@ -106,7 +106,7 @@ class A_formatter:public flag_formatter
|
||||
|
||||
//Abbreviated month
|
||||
static const auto& months() {
|
||||
static std::array<std::string, 12> arr{ "Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec" };
|
||||
static const std::array<std::string, 12> arr{ "Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec" };
|
||||
return arr;
|
||||
}
|
||||
class b_formatter:public flag_formatter
|
||||
@ -119,7 +119,7 @@ class b_formatter:public flag_formatter
|
||||
|
||||
//Full month name
|
||||
static const auto& full_months() {
|
||||
static std::array<std::string, 12> arr{ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
|
||||
static const std::array<std::string, 12> arr{ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
|
||||
return arr;
|
||||
}
|
||||
class B_formatter:public flag_formatter
|
||||
|
Loading…
Reference in New Issue
Block a user