projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
530d23f
)
Cleanup: use some auto.
author
Carl Hetherington
<cth@carlh.net>
Sun, 31 Dec 2023 15:51:00 +0000
(16:51 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 31 Dec 2023 15:51:00 +0000
(16:51 +0100)
src/wx/playlist_controls.cc
patch
|
blob
|
history
diff --git
a/src/wx/playlist_controls.cc
b/src/wx/playlist_controls.cc
index 11136d1238e7cca90c7b8c23bb0119a0d3f90946..3a1bba3628bf1c48b697aa298b898b33e6d1b44f 100644
(file)
--- 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);
_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);
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);
}
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);
_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);
}
m->SetFont (subheading_font);
content_header->Add (m, 1, wxALIGN_CENTER_VERTICAL);
}