From: Carl Hetherington Date: Fri, 18 Mar 2022 21:49:29 +0000 (+0100) Subject: Add an initialisation in the class. X-Git-Tag: v2.16.8~18 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=8937b4096aef372dbde07c78d1af9d44b0b0d642;ds=sidebyside Add an initialisation in the class. --- diff --git a/src/wx/screens_panel.cc b/src/wx/screens_panel.cc index 4eadf5128..fc63d618d 100644 --- a/src/wx/screens_panel.cc +++ b/src/wx/screens_panel.cc @@ -48,7 +48,6 @@ using namespace dcpomatic; ScreensPanel::ScreensPanel (wxWindow* parent) : wxPanel (parent, wxID_ANY) - , _ignore_selection_change (false) { auto sizer = new wxBoxSizer (wxVERTICAL); diff --git a/src/wx/screens_panel.h b/src/wx/screens_panel.h index a00e5d39f..2567725b8 100644 --- a/src/wx/screens_panel.h +++ b/src/wx/screens_panel.h @@ -93,7 +93,7 @@ private: std::map, wxTreeListItem> _cinema_to_item; std::map, wxTreeListItem> _screen_to_item; - bool _ignore_selection_change; + bool _ignore_selection_change = false; class Comparator : public wxTreeListItemComparator {