Reformatted the code to comply with clang-format.
This commit is contained in:
parent
780e68f456
commit
0535e93848
@ -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--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user