C++11 cleanup.
authorCarl Hetherington <cth@carlh.net>
Tue, 1 Mar 2022 21:40:47 +0000 (22:40 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 9 Mar 2022 16:04:02 +0000 (17:04 +0100)
src/wx/screens_panel.cc
src/wx/table_dialog.cc

index 65625e0df534ad414fdf61d584869369b3d1c99c..0038a30fbf01945d306ec8c89c1b214463adcda6 100644 (file)
@@ -45,7 +45,7 @@ ScreensPanel::ScreensPanel (wxWindow* parent)
        : wxPanel (parent, wxID_ANY)
        , _ignore_selection_change (false)
 {
-       wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
+       auto sizer = new wxBoxSizer (wxVERTICAL);
 
 #ifdef __WXGTK3__
        int const height = 30;
index 862f7db1a30f310091586398a8796f8fcb8819fa..05d06432cbaa85175f355291ab6ec0ceaf8f3926 100644 (file)
 
 */
 
+
+#include "static_text.h"
 #include "table_dialog.h"
 #include "wx_util.h"
-#include "static_text.h"
+
 
 TableDialog::TableDialog (wxWindow* parent, wxString title, int columns, int growable, bool cancel)
        : wxDialog (parent, wxID_ANY, title)
@@ -38,12 +40,13 @@ TableDialog::TableDialog (wxWindow* parent, wxString title, int columns, int gro
                flags |= wxCANCEL;
        }
 
-       wxSizer* buttons = CreateSeparatedButtonSizer (flags);
+       auto buttons = CreateSeparatedButtonSizer (flags);
        if (buttons) {
                _overall_sizer->Add (buttons, wxSizerFlags().Expand().DoubleBorder());
        }
 }
 
+
 void
 TableDialog::layout ()
 {
@@ -51,6 +54,7 @@ TableDialog::layout ()
        _overall_sizer->SetSizeHints (this);
 }
 
+
 wxStaticText *
 #ifdef DCPOMATIC_OSX
 TableDialog::add (wxString text, bool label)
@@ -65,12 +69,13 @@ TableDialog::add (wxString text, bool)
                text += wxT (":");
        }
 #endif
-       wxStaticText* m = new StaticText (this, wxT (""));
+       auto m = new StaticText (this, wxT (""));
        m->SetLabelMarkup (text);
        _table->Add (m, 0, flags, 6);
        return m;
 }
 
+
 void
 TableDialog::add_spacer ()
 {