projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
469f7eb
)
C++11 tidying.
author
Carl Hetherington
<cth@carlh.net>
Fri, 6 May 2022 07:56:47 +0000
(09:56 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 6 May 2022 07:56:47 +0000
(09:56 +0200)
src/wx/disk_warning_dialog.cc
patch
|
blob
|
history
diff --git
a/src/wx/disk_warning_dialog.cc
b/src/wx/disk_warning_dialog.cc
index c1bdd32f7f37c5216b8a1787830872a79658defb..8f581c2d1f1b5e5365f138de556060eb736e833f 100644
(file)
--- 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"))
{
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);
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());
}
if (buttons) {
sizer->Add(buttons, wxSizerFlags().Expand().DoubleBorder());
}