summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-05-03 01:04:48 +0200
committerCarl Hetherington <cth@carlh.net>2025-05-03 01:04:52 +0200
commitbc5c582b78affde771f4c47c7789981392a4d861 (patch)
tree31dbe696f7fb8984334e043ca150980045d8502c
parentf3bddcca59512a725d19bb16b94be0aa60c474b6 (diff)
Merge an if statement.
-rw-r--r--src/wx/update_dialog.cc5
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);