A few minors changes following the code review : rename fs -> filesystem, use std::array instead of raw array,...

This commit is contained in:
Jean-François Milants
2022-09-27 18:06:15 +02:00
parent 58bb0e77db
commit 56f315b94a
6 changed files with 17 additions and 17 deletions

View File

@@ -14,6 +14,8 @@ namespace Pinetime {
namespace Screens {
class CheckboxList : public Screen {
public:
static constexpr size_t MaxItems = 4;
CheckboxList(const uint8_t screenID,
const uint8_t numScreens,
DisplayApp* app,
@@ -22,7 +24,7 @@ namespace Pinetime {
const char* optionsSymbol,
void (Controllers::Settings::*SetOptionIndex)(uint8_t),
uint8_t (Controllers::Settings::*GetOptionIndex)() const,
std::array<const char*, MAXLISTITEMS> options);
std::array<const char*, MaxItems> options);
~CheckboxList() override;
@@ -35,12 +37,10 @@ namespace Pinetime {
const char* optionsSymbol;
void (Controllers::Settings::*SetOptionIndex)(uint8_t);
uint8_t (Controllers::Settings::*GetOptionIndex)() const;
std::array<const char*, MAXLISTITEMS> options;
lv_obj_t* cbOption[MAXLISTITEMS];
lv_point_t pageIndicatorBasePoints[2];
lv_point_t pageIndicatorPoints[2];
std::array<const char*, MaxItems> options;
std::array<lv_obj_t*, MaxItems> cbOption;
std::array<lv_point_t, 2> pageIndicatorBasePoints;
std::array<lv_point_t, 2> pageIndicatorPoints;
lv_obj_t* pageIndicatorBase;
lv_obj_t* pageIndicator;
};