From 7b30ec45f8d3d2881d633356058628373eb47057 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 5 Jun 2022 21:09:58 +0200 Subject: [PATCH] C++11 tidying. --- src/wx/export_video_file_dialog.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wx/export_video_file_dialog.cc b/src/wx/export_video_file_dialog.cc index 50ea5ca48..54bdbdf03 100644 --- a/src/wx/export_video_file_dialog.cc +++ b/src/wx/export_video_file_dialog.cc @@ -108,7 +108,7 @@ ExportVideoFileDialog::ExportVideoFileDialog (wxWindow* parent, string name) layout (); - wxButton* ok = dynamic_cast (FindWindowById (wxID_OK, this)); + auto ok = dynamic_cast (FindWindowById (wxID_OK, this)); ok->Enable (false); } @@ -167,7 +167,7 @@ ExportVideoFileDialog::x264_crf () const void ExportVideoFileDialog::file_changed () { - wxButton* ok = dynamic_cast (FindWindowById (wxID_OK, this)); + auto ok = dynamic_cast (FindWindowById (wxID_OK, this)); DCPOMATIC_ASSERT (ok); ok->Enable (path().is_absolute()); } -- 2.30.2