summaryrefslogtreecommitdiff
path: root/src/components/datetime/DateTimeController.h
diff options
context:
space:
mode:
authorReinhold Gschweicher <pyro4hell@gmail.com>2022-03-14 19:28:51 (GMT)
committerReinhold Gschweicher <pyro4hell@gmail.com>2022-03-14 19:59:44 (GMT)
commitdb41d9081a61b2370a4633568a9cb01bc948a5ab (patch)
treebfc24de6ccbe23878bb2501be83e3c48eb6795c9 /src/components/datetime/DateTimeController.h
parent21da5869c5e48df666ea9d9c7698f7f69528645e (diff)
DateTimeController: make possible functions const
MonthShortToString and DayOfWeekShortToString don't change the underlying object. Those are just getters and can be declared `const`.
Diffstat (limited to 'src/components/datetime/DateTimeController.h')
-rw-r--r--src/components/datetime/DateTimeController.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/datetime/DateTimeController.h b/src/components/datetime/DateTimeController.h
index 6e5ee3c..00bbc2e 100644
--- a/src/components/datetime/DateTimeController.h
+++ b/src/components/datetime/DateTimeController.h
@@ -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 {