From f5e9055e099a9bb7cf7995c668d6469483301fb1 Mon Sep 17 00:00:00 2001 From: Diego Miguel Date: Fri, 18 Mar 2022 16:33:02 +0100 Subject: [PATCH] Make function DayOfWeekShortToStringLow const --- src/components/datetime/DateTimeController.cpp | 2 +- src/components/datetime/DateTimeController.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/datetime/DateTimeController.cpp b/src/components/datetime/DateTimeController.cpp index f71911ef..4dc16329 100644 --- a/src/components/datetime/DateTimeController.cpp +++ b/src/components/datetime/DateTimeController.cpp @@ -127,7 +127,7 @@ const char* DateTime::MonthShortToStringLow(Months month) { return MonthsStringLow[static_cast(month)]; } -const char* DateTime::DayOfWeekShortToStringLow() { +const char* DateTime::DayOfWeekShortToStringLow() const { return DaysStringShortLow[static_cast(dayOfWeek)]; } diff --git a/src/components/datetime/DateTimeController.h b/src/components/datetime/DateTimeController.h index 4eddc5a7..81319d15 100644 --- a/src/components/datetime/DateTimeController.h +++ b/src/components/datetime/DateTimeController.h @@ -64,7 +64,7 @@ namespace Pinetime { const char* MonthShortToString() const; const char* DayOfWeekShortToString() const; static const char* MonthShortToStringLow(Months month); - const char* DayOfWeekShortToStringLow(); + const char* DayOfWeekShortToStringLow() const; std::chrono::time_point CurrentDateTime() const { return currentDateTime;