Reformatted the code to comply with clang-format.

This commit is contained in:
JustScott 2024-01-14 10:15:13 -06:00
parent 780e68f456
commit 0535e93848
2 changed files with 59 additions and 60 deletions

View File

@ -54,8 +54,7 @@ bool Calendar::OnTouchEvent(Pinetime::Applications::TouchEvents event) {
if (current.month == 12) { if (current.month == 12) {
current.month = 1; current.month = 1;
current.year++; current.year++;
} } else {
else{
current.month++; current.month++;
} }
@ -66,8 +65,7 @@ bool Calendar::OnTouchEvent(Pinetime::Applications::TouchEvents event) {
if (current.month == 1) { if (current.month == 1) {
current.month = 12; current.month = 12;
current.year--; current.year--;
} } else {
else{
current.month--; current.month--;
} }

View File

@ -37,6 +37,7 @@ namespace Pinetime {
public: public:
Calendar(Controllers::DateTime& dateTimeController); Calendar(Controllers::DateTime& dateTimeController);
~Calendar() override; ~Calendar() override;
private: private:
bool OnTouchEvent(TouchEvents event); bool OnTouchEvent(TouchEvents event);
Controllers::DateTime& dateTimeController; Controllers::DateTime& dateTimeController;