diff options
| author | JF002 <JF002@users.noreply.github.com> | 2020-10-08 18:58:24 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-08 18:58:24 (GMT) |
| commit | 0a8d8953f73cd09844652515651d55b12ce6f2bf (patch) | |
| tree | 3464df442327b60b3c7f77464f246a66c68f0d9a /src/displayapp/screens/Gauge.cpp | |
| parent | 9d43eff43a5984dfb368445d3428560dae9269da (diff) | |
| parent | e85d1ffc625c73dcbb30c783707bfb6110af6a41 (diff) | |
Merge pull request #80 from Avamander/patch-1
Switched from NULL to nullptr
Diffstat (limited to 'src/displayapp/screens/Gauge.cpp')
| -rw-r--r-- | src/displayapp/screens/Gauge.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/displayapp/screens/Gauge.cpp b/src/displayapp/screens/Gauge.cpp index fd90523..81c283c 100644 --- a/src/displayapp/screens/Gauge.cpp +++ b/src/displayapp/screens/Gauge.cpp @@ -25,11 +25,11 @@ Gauge::Gauge(Pinetime::Applications::DisplayApp *app) : Screen(app) { needle_colors[0] = LV_COLOR_ORANGE; /*Create a gauge*/ - gauge1 = lv_gauge_create(lv_scr_act(), NULL); + gauge1 = lv_gauge_create(lv_scr_act(), nullptr); lv_gauge_set_style(gauge1, LV_GAUGE_STYLE_MAIN, &style); lv_gauge_set_needle_count(gauge1, 1, needle_colors); lv_obj_set_size(gauge1, 180, 180); - lv_obj_align(gauge1, NULL, LV_ALIGN_CENTER, 0, 0); + lv_obj_align(gauge1, nullptr, LV_ALIGN_CENTER, 0, 0); lv_gauge_set_scale(gauge1, 360, 60, 0); lv_gauge_set_range(gauge1, 0, 59); |
