From 322eb4d9ddd346af593c3d82674fa71c9d67ff34 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 27 Dec 2021 00:00:12 +0100 Subject: C++11 tidying. --- src/wx/table_dialog.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wx/table_dialog.cc b/src/wx/table_dialog.cc index 862f7db1a..34ff6bf9d 100644 --- a/src/wx/table_dialog.cc +++ b/src/wx/table_dialog.cc @@ -38,7 +38,7 @@ 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()); } @@ -65,7 +65,7 @@ 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; -- cgit v1.2.3