summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-05-06 09:56:47 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-06 09:56:47 +0200
commitd99ce6462e5e17d20f232e02e7ce3b6da078700c (patch)
tree812e3df5fe33e092655fe144a21d2da65f6f49e4
parent469f7ebe301119ca935f39d56befe704bafea98e (diff)
C++11 tidying.
-rw-r--r--src/wx/disk_warning_dialog.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/disk_warning_dialog.cc b/src/wx/disk_warning_dialog.cc
index c1bdd32f7..8f581c2d1 100644
--- a/src/wx/disk_warning_dialog.cc
+++ b/src/wx/disk_warning_dialog.cc
@@ -25,13 +25,13 @@
DiskWarningDialog::DiskWarningDialog ()
: wxDialog (0, wxID_ANY, _("Important notice"))
{
- wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
- wxStaticText* text = new StaticText (this, wxEmptyString, wxDefaultPosition, wxSize(400, 300));
+ auto sizer = new wxBoxSizer (wxVERTICAL);
+ auto text = new StaticText (this, wxEmptyString, wxDefaultPosition, wxSize(400, 300));
sizer->Add (text, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER);
_yes = new wxTextCtrl (this, wxID_ANY);
sizer->Add (_yes, 0, wxALL, DCPOMATIC_DIALOG_BORDER);
- wxSizer* buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL);
+ auto buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL);
if (buttons) {
sizer->Add(buttons, wxSizerFlags().Expand().DoubleBorder());
}