summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-12-31 16:51:00 +0100
committerCarl Hetherington <cth@carlh.net>2023-12-31 16:51:00 +0100
commit33cf29b8b21e890eea8f715609a8ef776277b3da (patch)
tree16ef98d0a83f34025dde4a2e3ade66e1392c24fa /src
parent530d23f023bcf1db16835bb5f93d4913e9ba8373 (diff)
Cleanup: use some auto.
Diffstat (limited to 'src')
-rw-r--r--src/wx/playlist_controls.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wx/playlist_controls.cc b/src/wx/playlist_controls.cc
index 11136d123..3a1bba362 100644
--- a/src/wx/playlist_controls.cc
+++ b/src/wx/playlist_controls.cc
@@ -70,15 +70,15 @@ PlaylistControls::PlaylistControls(wxWindow* parent, FilmViewer& viewer)
_spl_view = new wxListCtrl (this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT | wxLC_NO_HEADER);
_spl_view->AppendColumn (wxT(""), wxLIST_FORMAT_LEFT, 740);
- wxBoxSizer* left_sizer = new wxBoxSizer (wxVERTICAL);
- wxBoxSizer* e_sizer = new wxBoxSizer (wxHORIZONTAL);
+ auto left_sizer = new wxBoxSizer(wxVERTICAL);
+ auto e_sizer = new wxBoxSizer(wxHORIZONTAL);
wxFont subheading_font (*wxNORMAL_FONT);
subheading_font.SetWeight (wxFONTWEIGHT_BOLD);
- wxBoxSizer* spl_header = new wxBoxSizer (wxHORIZONTAL);
+ auto spl_header = new wxBoxSizer(wxHORIZONTAL);
{
- wxStaticText* m = new StaticText (this, "Playlists");
+ auto m = new StaticText(this, "Playlists");
m->SetFont (subheading_font);
spl_header->Add (m, 1, wxALIGN_CENTER_VERTICAL);
}
@@ -90,9 +90,9 @@ PlaylistControls::PlaylistControls(wxWindow* parent, FilmViewer& viewer)
_content_view = new ContentView (this);
- wxBoxSizer* content_header = new wxBoxSizer (wxHORIZONTAL);
+ auto content_header = new wxBoxSizer(wxHORIZONTAL);
{
- wxStaticText* m = new StaticText (this, "Content");
+ auto m = new StaticText(this, "Content");
m->SetFont (subheading_font);
content_header->Add (m, 1, wxALIGN_CENTER_VERTICAL);
}