diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-23 22:29:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-18 00:41:34 +0100 |
| commit | 7e7577624a7b7978ecec3aa0032bc512620c5c26 (patch) | |
| tree | cf0a47604b108bf7d03df020283765d1b6ece6ee /src | |
| parent | ac8e1c0859f9bac157c158ef189f9c1baf43437f (diff) | |
Cleanup: use some defaults in the class definition.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/controls.cc | 4 | ||||
| -rw-r--r-- | src/wx/controls.h | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc index b9eebade5..84923d467 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -71,10 +71,6 @@ Controls::Controls(wxWindow* parent, FilmViewer& viewer, bool editor_controls) , _markers (new MarkersPanel(this, viewer)) , _slider (new wxSlider(this, wxID_ANY, 0, 0, 4096)) , _viewer (viewer) - , _slider_being_moved (false) - , _outline_content (0) - , _eye (0) - , _jump_to_selected (0) , _rewind_button (new Button(this, wxT("|<"))) , _back_button (new Button(this, wxT("<"))) , _forward_button (new Button(this, wxT(">"))) diff --git a/src/wx/controls.h b/src/wx/controls.h index f04f3aab6..321d7e05c 100644 --- a/src/wx/controls.h +++ b/src/wx/controls.h @@ -106,11 +106,11 @@ private: typedef std::pair<std::shared_ptr<dcp::CPL>, boost::filesystem::path> CPL; - bool _slider_being_moved; + bool _slider_being_moved = false; - CheckBox* _outline_content; - wxChoice* _eye; - CheckBox* _jump_to_selected; + CheckBox* _outline_content = nullptr; + wxChoice* _eye = nullptr; + CheckBox* _jump_to_selected = nullptr; wxButton* _rewind_button; wxButton* _back_button; wxButton* _forward_button; |
