Skip to content

Commit

Permalink
fix(color): Initialise theme variables to nullptr before first use (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
eshifri authored and pfeerick committed Nov 25, 2022
1 parent 338eafe commit f6d140e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radio/src/gui/colorlcd/radio_theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ class ColorEditPage : public Page
ThemeFile _theme;
TextButton *_cancelButton;
ColorEditor *_colorEditor;
PreviewWindow *_previewWindow;
PreviewWindow *_previewWindow = nullptr;
std::vector<Button *> _tabs;
int _activeTab = 0;
ColorSquare *_colorSquare;
StaticText *_hexBox;
ColorSquare *_colorSquare = nullptr;
StaticText *_hexBox = nullptr;

void buildBody(FormWindow* window)
{
Expand Down

0 comments on commit f6d140e

Please sign in to comment.