File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,11 +108,11 @@ void DateTime::UpdateTime(uint32_t systickCounter) {
108108 }
109109}
110110
111- const char * DateTime::MonthShortToString () {
111+ const char * DateTime::MonthShortToString () const {
112112 return MonthsString[static_cast <uint8_t >(month)];
113113}
114114
115- const char * DateTime::DayOfWeekShortToString () {
115+ const char * DateTime::DayOfWeekShortToString () const {
116116 return DaysStringShort[static_cast <uint8_t >(dayOfWeek)];
117117}
118118
Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ namespace Pinetime {
6161 return second;
6262 }
6363
64- const char * MonthShortToString ();
65- const char * DayOfWeekShortToString ();
64+ const char * MonthShortToString () const ;
65+ const char * DayOfWeekShortToString () const ;
6666 static const char * MonthShortToStringLow (Months month);
6767
6868 std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> CurrentDateTime () const {
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ namespace Pinetime {
7474 lv_obj_t * batteryIcon;
7575 lv_obj_t * notificationIcon;
7676
77- Controllers::DateTime& dateTimeController;
77+ const Controllers::DateTime& dateTimeController;
7878 Controllers::Battery& batteryController;
7979 Controllers::Ble& bleController;
8080 Controllers::NotificationManager& notificationManager;
You can’t perform that action at this time.
0 commit comments