C++11 tidying.
[dcpomatic.git] / src / wx / try_unmount_dialog.cc
index 44d9709191e87007ae7895fc838a852f67ba49b6..ffa4af535b7271966db5d38c5616052e48b33196 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2020 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2020-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #include "try_unmount_dialog.h"
 #include "wx_util.h"
 #include "static_text.h"
 #include <wx/wx.h>
 
+
 TryUnmountDialog::TryUnmountDialog (wxWindow* parent, wxString description)
        : wxDialog (parent, wxID_ANY, _("DCP-o-matic Disk Writer"))
 {
-       wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
-       wxStaticText* text = new StaticText (this, wxEmptyString);
+       auto sizer = new wxBoxSizer (wxVERTICAL);
+       auto text = new StaticText (this, wxEmptyString);
        sizer->Add (text, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER);
 
        text->SetLabelMarkup (
                wxString::Format(_("The drive <b>%s</b> is mounted.\n\nIt must be unmounted before DCP-o-matic can write to it.\n\nShould DCP-o-matic try to unmount it now?"), description)
                );
 
-       wxSizer* buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL);
+       auto buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL);
        if (buttons) {
                sizer->Add(buttons, wxSizerFlags().Expand().DoubleBorder());
        }