std::shared_ptr
[dcpomatic.git] / src / wx / content_panel.cc
index 9ec44a9f22d1bf9bd85e577460191473aabeff0e..7114e8337fb6b6298ef9aada0ffe0b65d9c218e3 100644 (file)
@@ -57,9 +57,9 @@ using std::cout;
 using std::vector;
 using std::max;
 using std::exception;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using namespace dcpomatic;
 #if BOOST_VERSION >= 106100
@@ -803,6 +803,7 @@ ContentPanel::panels () const
 
 LimitedSplitter::LimitedSplitter (wxWindow* parent)
        : wxSplitterWindow (parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_NOBORDER | wxSP_3DSASH | wxSP_LIVE_UPDATE)
+       , _first_shown (false)
        , _top_panel_minimum_size (350)
 {
        /* This value doesn't really mean much but we just want to stop double-click on the
@@ -828,7 +829,7 @@ LimitedSplitter::first_shown (wxWindow* top, wxWindow* bottom)
                /* Fallback for when GetFromWindow fails for reasons that aren't clear */
                SplitHorizontally (top, bottom, -600);
        }
-
+       _first_shown = true;
 }