Skip to content

Datetime const and analog const ref#1039

Merged
JF002 merged 2 commits into
InfiniTimeOrg:developfrom
NeroBurner:datetime_const_and_analog_const_ref
Mar 14, 2022
Merged

Datetime const and analog const ref#1039
JF002 merged 2 commits into
InfiniTimeOrg:developfrom
NeroBurner:datetime_const_and_analog_const_ref

Conversation

@NeroBurner
Copy link
Copy Markdown
Contributor

MonthShortToString and DayOfWeekShortToString don't change theunderlying object. Those are just getters and can be declared const.

With the getters const we can store a const reference in WatchFaceAnalog

MonthShortToString and DayOfWeekShortToString don't change the
underlying object. Those are just getters and can be declared `const`.
The clock app only reads from the dateTimeController, never modifies it.
@JF002 JF002 added this to the 1.9.0 milestone Mar 14, 2022
@JF002 JF002 merged commit 76b7436 into InfiniTimeOrg:develop Mar 14, 2022
@NeroBurner NeroBurner deleted the datetime_const_and_analog_const_ref branch March 14, 2022 20:14
@NeroBurner NeroBurner mentioned this pull request Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants