diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-05-03 01:04:48 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-05-03 01:04:52 +0200 |
| commit | bc5c582b78affde771f4c47c7789981392a4d861 (patch) | |
| tree | 31dbe696f7fb8984334e043ca150980045d8502c | |
| parent | f3bddcca59512a725d19bb16b94be0aa60c474b6 (diff) | |
Merge an if statement.
| -rw-r--r-- | src/wx/update_dialog.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wx/update_dialog.cc b/src/wx/update_dialog.cc index 586515925..0ed8c23e4 100644 --- a/src/wx/update_dialog.cc +++ b/src/wx/update_dialog.cc @@ -70,9 +70,8 @@ UpdateDialog::UpdateDialog(wxWindow* parent, optional<string> stable, optional<s overall_sizer->Add(table, 0, wxTOP | wxLEFT | wxRIGHT, DCPOMATIC_DIALOG_BORDER); - auto buttons = CreateButtonSizer (wxOK); - if (buttons) { - overall_sizer->Add (buttons, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER); + if (auto buttons = CreateButtonSizer(wxOK)) { + overall_sizer->Add(buttons, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER); } SetSizerAndFit(overall_sizer); |
