Setting SetDate/SetTime : replace #defines by constexpr variables, NULL by nullptr and other small cleanings.

This commit is contained in:
Jean-François Milants
2021-10-10 16:18:14 +02:00
parent 7cbd56896a
commit f2357b36e5
4 changed files with 61 additions and 85 deletions

View File

@@ -6,10 +6,8 @@
#include "displayapp/screens/Screen.h"
namespace Pinetime {
namespace Applications {
namespace Screens {
class SettingSetTime : public Screen{
public:
SettingSetTime(DisplayApp* app, Pinetime::Controllers::DateTime &dateTimeController);
@@ -17,8 +15,7 @@ namespace Pinetime {
void HandleButtonPress(lv_obj_t *object, lv_event_t event);
private:
private:
Controllers::DateTime& dateTimeController;
int hoursValue;
@@ -30,7 +27,6 @@ namespace Pinetime {
lv_obj_t * btnMinutesPlus;
lv_obj_t * btnMinutesMinus;
lv_obj_t * btnSetTime;
};
}
}