Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroBurner committed Sep 18, 2024
1 parent 7c23183 commit 3bd5277
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/displayapp/screens/CheckboxList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ CheckboxList::CheckboxList(const uint8_t screenID,

CheckboxList::~CheckboxList() {
lv_obj_clean(lv_scr_act());
if(!IsChecked_) {
if (!IsChecked_) {
OnValueChanged(value);
}
}

void CheckboxList::UpdateSelected(lv_obj_t* object, lv_event_t event) {
if (event == LV_EVENT_VALUE_CHANGED) {
if(!IsChecked_) {
if (!IsChecked_) {
for (unsigned int i = 0; i < options.size(); i++) {
if (strcmp(options[i].name, "")) {
if (object == cbOption[i]) {
Expand Down
7 changes: 2 additions & 5 deletions src/displayapp/screens/settings/SettingWakeUp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,8 @@ auto SettingWakeUp::CreateScreenList() const {
return screens;
}

SettingWakeUp::SettingWakeUp(
Pinetime::Applications::DisplayApp* app,
Pinetime::Controllers::Settings& settingsController)
: settingsController {settingsController},
screens {app, 0, CreateScreenList(), Screens::ScreenListModes::UpDown} {
SettingWakeUp::SettingWakeUp(Pinetime::Applications::DisplayApp* app, Pinetime::Controllers::Settings& settingsController)
: settingsController {settingsController}, screens {app, 0, CreateScreenList(), Screens::ScreenListModes::UpDown} {
}

SettingWakeUp::~SettingWakeUp() {
Expand Down
4 changes: 1 addition & 3 deletions src/displayapp/screens/settings/SettingWakeUp.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ namespace Pinetime {

class SettingWakeUp : public Screen {
public:
SettingWakeUp(
DisplayApp *app,
Pinetime::Controllers::Settings& settingsController);
SettingWakeUp(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
~SettingWakeUp() override;

bool OnTouchEvent(TouchEvents event) override;
Expand Down

0 comments on commit 3bd5277

Please sign in to comment.