DateTimeController: make possible functions const
MonthShortToString and DayOfWeekShortToString don't change the underlying object. Those are just getters and can be declared `const`.
This commit is contained in:
parent
21da5869c5
commit
db41d9081a
2 changed files with 4 additions and 4 deletions
|
|
@ -61,8 +61,8 @@ namespace Pinetime {
|
|||
return second;
|
||||
}
|
||||
|
||||
const char* MonthShortToString();
|
||||
const char* DayOfWeekShortToString();
|
||||
const char* MonthShortToString() const;
|
||||
const char* DayOfWeekShortToString() const;
|
||||
static const char* MonthShortToStringLow(Months month);
|
||||
|
||||
std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> CurrentDateTime() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue