diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-03-02 23:15:30 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-03-02 23:15:30 +0100 |
| commit | 262acaf9ad9b617bfab496df6011acf61cc4d525 (patch) | |
| tree | a5dff22db1e1ef2d54728e9e8170379f66dd1bd0 | |
| parent | e310b50c80eb218ea296483ddfac0859c9c5ab80 (diff) | |
Compress an if.
| -rw-r--r-- | src/wx/export_subtitles_dialog.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wx/export_subtitles_dialog.cc b/src/wx/export_subtitles_dialog.cc index 92cac77cc..bbc8cfc01 100644 --- a/src/wx/export_subtitles_dialog.cc +++ b/src/wx/export_subtitles_dialog.cc @@ -80,8 +80,7 @@ ExportSubtitlesDialog::ExportSubtitlesDialog(wxWindow* parent, int reels, bool i auto overall_sizer = new wxBoxSizer(wxVERTICAL); overall_sizer->Add(sizer, 1, wxALL, DCPOMATIC_DIALOG_BORDER); - auto buttons = CreateSeparatedButtonSizer(wxOK | wxCANCEL); - if (buttons) { + if (auto buttons = CreateSeparatedButtonSizer(wxOK | wxCANCEL)) { overall_sizer->Add(buttons, wxSizerFlags().Expand().DoubleBorder()); } |
