Make function DayOfWeekShortToStringLow const

This commit is contained in:
Diego Miguel 2022-03-18 16:33:02 +01:00
parent b15f90aa1d
commit f5e9055e09
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ const char* DateTime::MonthShortToStringLow(Months month) {
return MonthsStringLow[static_cast<uint8_t>(month)]; return MonthsStringLow[static_cast<uint8_t>(month)];
} }
const char* DateTime::DayOfWeekShortToStringLow() { const char* DateTime::DayOfWeekShortToStringLow() const {
return DaysStringShortLow[static_cast<uint8_t>(dayOfWeek)]; return DaysStringShortLow[static_cast<uint8_t>(dayOfWeek)];
} }

View File

@ -64,7 +64,7 @@ namespace Pinetime {
const char* MonthShortToString() const; const char* MonthShortToString() const;
const char* DayOfWeekShortToString() const; const char* DayOfWeekShortToString() const;
static const char* MonthShortToStringLow(Months month); static const char* MonthShortToStringLow(Months month);
const char* DayOfWeekShortToStringLow(); const char* DayOfWeekShortToStringLow() const;
std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> CurrentDateTime() const { std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> CurrentDateTime() const {
return currentDateTime; return currentDateTime;