Cleanup: use auto.
authorCarl Hetherington <cth@carlh.net>
Mon, 16 Jan 2023 19:53:32 +0000 (20:53 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 16 Jan 2023 19:53:32 +0000 (20:53 +0100)
src/wx/screen_dialog.cc

index 6b13675cd802f28ab3d61040874e2f3d950ced85..bc39193fba395d790f11a95594e52c18e745a864 100644 (file)
@@ -194,7 +194,7 @@ ScreenDialog::ScreenDialog (
 
        overall_sizer->Add (_sizer, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER);
 
-       wxSizer* buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL);
+       auto buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL);
        if (buttons) {
                overall_sizer->Add (buttons, wxSizerFlags().Expand().DoubleBorder());
        }