Add an initialisation in the class.
authorCarl Hetherington <cth@carlh.net>
Fri, 18 Mar 2022 21:49:29 +0000 (22:49 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 18 Mar 2022 21:50:23 +0000 (22:50 +0100)
src/wx/screens_panel.cc
src/wx/screens_panel.h

index 4eadf5128b03605e1aefb0ca82329392a62e24b0..fc63d618d2b01c3e01bbd6adc618a2939d2860e3 100644 (file)
@@ -48,7 +48,6 @@ using namespace dcpomatic;
 
 ScreensPanel::ScreensPanel (wxWindow* parent)
        : wxPanel (parent, wxID_ANY)
-       , _ignore_selection_change (false)
 {
        auto sizer = new wxBoxSizer (wxVERTICAL);
 
index a00e5d39f28e2f1483bcf297db0397bb0b84a0c7..2567725b85ac87e1afe0717cfd5f1871e70596ed 100644 (file)
@@ -93,7 +93,7 @@ private:
        std::map<std::shared_ptr<Cinema>, wxTreeListItem> _cinema_to_item;
        std::map<std::shared_ptr<dcpomatic::Screen>, wxTreeListItem> _screen_to_item;
 
-       bool _ignore_selection_change;
+       bool _ignore_selection_change = false;
 
        class Comparator : public wxTreeListItemComparator
        {