Optimize arrays
This commit is contained in:
parent
494448b7cc
commit
736ae08fcd
6 changed files with 15 additions and 9 deletions
|
|
@ -19,10 +19,9 @@ namespace Pinetime {
|
|||
void UpdateSelected(lv_obj_t* object, lv_event_t event);
|
||||
|
||||
private:
|
||||
const std::array<std::string, 2> options = {" 12-hour", " 24-hour"};
|
||||
|
||||
static constexpr std::array<const char*, 2> options = {" 12-hour", " 24-hour"};
|
||||
Controllers::Settings& settingsController;
|
||||
lv_obj_t* cbOption[2];
|
||||
lv_obj_t* cbOption[options.size()];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue