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) {
|
||||
current.month = 1;
|
||||
current.year++;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
current.month++;
|
||||
}
|
||||
|
||||
@ -66,8 +65,7 @@ bool Calendar::OnTouchEvent(Pinetime::Applications::TouchEvents event) {
|
||||
if (current.month == 1) {
|
||||
current.month = 12;
|
||||
current.year--;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
current.month--;
|
||||
}
|
||||
|
||||
|
@ -37,6 +37,7 @@ namespace Pinetime {
|
||||
public:
|
||||
Calendar(Controllers::DateTime& dateTimeController);
|
||||
~Calendar() override;
|
||||
|
||||
private:
|
||||
bool OnTouchEvent(TouchEvents event);
|
||||
Controllers::DateTime& dateTimeController;
|
||||
|
Loading…
Reference in New Issue
Block a user