C++11 tidying.
authorCarl Hetherington <cth@carlh.net>
Sun, 5 Jun 2022 19:09:58 +0000 (21:09 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 6 Jun 2022 21:10:58 +0000 (23:10 +0200)
src/wx/export_video_file_dialog.cc

index 50ea5ca485d15c81fea9afd172a298faf6f25632..54bdbdf03cf77e897f3d253605d61e1c7a6b3031 100644 (file)
@@ -108,7 +108,7 @@ ExportVideoFileDialog::ExportVideoFileDialog (wxWindow* parent, string name)
 
        layout ();
 
-       wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
+       auto ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
        ok->Enable (false);
 }
 
@@ -167,7 +167,7 @@ ExportVideoFileDialog::x264_crf () const
 void
 ExportVideoFileDialog::file_changed ()
 {
-       wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
+       auto ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
        DCPOMATIC_ASSERT (ok);
        ok->Enable (path().is_absolute());
 }