summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wx/export_subtitles_dialog.cc3
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());
}