diff options
Diffstat (limited to 'src/displayapp/screens/settings/SettingTimeFormat.h')
-rw-r--r-- | src/displayapp/screens/settings/SettingTimeFormat.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/displayapp/screens/settings/SettingTimeFormat.h b/src/displayapp/screens/settings/SettingTimeFormat.h index 0113e35b..fa24eabe 100644 --- a/src/displayapp/screens/settings/SettingTimeFormat.h +++ b/src/displayapp/screens/settings/SettingTimeFormat.h @@ -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()]; }; } } |