fix(color): Initialise theme variables to nullptr before first use (#2787)

This commit is contained in:
eshifri
2022-11-25 10:09:16 +10:00
committed by GitHub
parent 8d83487ceb
commit a267520236
+3 -3
View File
@@ -188,11 +188,11 @@ protected:
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)
{