Use wx_ptr for the splash screen.
[dcpomatic.git] / src / tools / dcpomatic_editor.cc
index 075cf177f091bea364a9424162818f0903dccae4..8e306551f970bc6790606a6795cef8d52f59ba9f 100644 (file)
 #include "wx/editable_list.h"
 #include "wx/wx_signal_manager.h"
 #include "wx/wx_util.h"
+#include "lib/constants.h"
 #include "lib/cross.h"
 #include "lib/dcpomatic_log.h"
 #include "lib/null_log.h"
-#include "lib/util.h"
 #include <dcp/cpl.h>
 #include <dcp/dcp.h>
 #include <dcp/reel.h>
@@ -221,7 +221,7 @@ public:
                        [](shared_ptr<dcp::Reel> reel, int) {
                                return reel->id();
                        },
-                       false,
+                       EditableListTitle::INVISIBLE,
                        EditableListButton::EDIT
                );
                sizer->Add(_reels, wxGBPosition(r, 1), wxDefaultSpan, wxEXPAND);
@@ -431,7 +431,7 @@ private:
 
        bool OnInit () override
        {
-               wxSplashScreen* splash = nullptr;
+               wx_ptr<wxSplashScreen> splash;
                try {
                        wxInitAllImageHandlers ();