summaryrefslogtreecommitdiff
path: root/src/wx/about_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-09 01:29:24 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-09 01:29:24 +0100
commitd31674ec14bb533fe2b195601e9ee2fe03848487 (patch)
tree7647a1de68dae090f68776baa271ac104b624c57 /src/wx/about_dialog.cc
parent444809fb888ed99803f2d19c94d3faef067cf348 (diff)
More c++ tidying.
Diffstat (limited to 'src/wx/about_dialog.cc')
-rw-r--r--src/wx/about_dialog.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/wx/about_dialog.cc b/src/wx/about_dialog.cc
index ae2bf0d0a..5c13be551 100644
--- a/src/wx/about_dialog.cc
+++ b/src/wx/about_dialog.cc
@@ -38,8 +38,8 @@ using std::vector;
AboutDialog::AboutDialog (wxWindow* parent)
: wxDialog (parent, wxID_ANY, _("About DCP-o-matic"))
{
- wxBoxSizer* overall_sizer = new wxBoxSizer (wxVERTICAL);
- wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
+ auto overall_sizer = new wxBoxSizer (wxVERTICAL);
+ auto sizer = new wxBoxSizer (wxVERTICAL);
wxFont title_font (*wxNORMAL_FONT);
title_font.SetPointSize (title_font.GetPointSize() + 12);
@@ -51,7 +51,7 @@ AboutDialog::AboutDialog (wxWindow* parent)
wxFont version_font (*wxNORMAL_FONT);
version_font.SetWeight (wxFONTWEIGHT_BOLD);
- wxStaticText* t = new StaticText (this, _("DCP-o-matic"));
+ auto t = new StaticText (this, _("DCP-o-matic"));
t->SetFont (title_font);
sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 16));
@@ -74,7 +74,7 @@ AboutDialog::AboutDialog (wxWindow* parent)
sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 8));
- wxHyperlinkCtrl* h = new wxHyperlinkCtrl (
+ auto h = new wxHyperlinkCtrl (
this, wxID_ANY,
wxT ("dcpomatic.com"),
wxT ("https://dcpomatic.com")
@@ -238,14 +238,14 @@ AboutDialog::AboutDialog (wxWindow* parent)
void
AboutDialog::add_section (wxString name, wxArrayString credits)
{
- static bool first = true;
+ static auto first = true;
int const N = 4;
- wxScrolledWindow* panel = new wxScrolledWindow (_notebook);
+ auto panel = new wxScrolledWindow (_notebook);
panel->SetMaxSize (wxSize (-1, 380));
panel->EnableScrolling (false, true);
panel->SetScrollRate (0, 32);
- wxSizer* overall_sizer = new wxBoxSizer (wxHORIZONTAL);
+ auto overall_sizer = new wxBoxSizer (wxHORIZONTAL);
vector<wxSizer*> sizers;