Cleanup: use some defaults in the class definition.
authorCarl Hetherington <cth@carlh.net>
Fri, 23 Dec 2022 21:29:19 +0000 (22:29 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 27 Feb 2023 13:47:25 +0000 (14:47 +0100)
src/wx/controls.cc
src/wx/controls.h

index b9eebade5317ad96ad488bbf763ca1bd9075ae3f..84923d467edd74d7f7c100930d8dd1b237abfeb2 100644 (file)
@@ -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(">")))
index f04f3aab6c60cc27bb4a02d7858131930b16fdb5..321d7e05c0868fa1083135d443f82160dd90590b 100644 (file)
@@ -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;