C++11 cleanup.
authorCarl Hetherington <cth@carlh.net>
Tue, 1 Mar 2022 21:40:47 +0000 (22:40 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 13 Mar 2022 23:14:02 +0000 (00:14 +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 34ff6bf9db16e00df9fc93d20d0154ee0f5d5395..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)
@@ -44,6 +46,7 @@ TableDialog::TableDialog (wxWindow* parent, wxString title, int columns, int gro
        }
 }
 
+
 void
 TableDialog::layout ()
 {
@@ -51,6 +54,7 @@ TableDialog::layout ()
        _overall_sizer->SetSizeHints (this);
 }
 
+
 wxStaticText *
 #ifdef DCPOMATIC_OSX
 TableDialog::add (wxString text, bool label)
@@ -71,6 +75,7 @@ TableDialog::add (wxString text, bool)
        return m;
 }
 
+
 void
 TableDialog::add_spacer ()
 {