diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-29 09:14:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-29 20:53:49 +0200 |
| commit | 39fb8198febde1937019db1c300ec363aab5aa56 (patch) | |
| tree | 52bc32134e8ae2b5587b3a62130baa9acf815b60 /src/wx/try_unmount_dialog.cc | |
| parent | b249700e1da7dd6631a8b4440587f4093a2bdef1 (diff) | |
C++11 tidying.
Diffstat (limited to 'src/wx/try_unmount_dialog.cc')
| -rw-r--r-- | src/wx/try_unmount_dialog.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/wx/try_unmount_dialog.cc b/src/wx/try_unmount_dialog.cc index 44d970919..ffa4af535 100644 --- a/src/wx/try_unmount_dialog.cc +++ b/src/wx/try_unmount_dialog.cc @@ -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. @@ -18,23 +18,25 @@ */ + #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()); } |
