From 9b946fc5250eff5a5dd4a661896916fcd5d9bd4b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 11 Jan 2021 16:46:13 +0100 Subject: More c++ tidying. --- src/wx/timecode.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wx/timecode.cc') diff --git a/src/wx/timecode.cc b/src/wx/timecode.cc index 0602358a9..c4755e574 100644 --- a/src/wx/timecode.cc +++ b/src/wx/timecode.cc @@ -31,7 +31,7 @@ TimecodeBase::TimecodeBase (wxWindow* parent, bool set_button) : wxPanel (parent) , _set_button (0) { - wxSize const s = TimecodeBase::size (parent); + auto const s = TimecodeBase::size (parent); wxTextValidator validator (wxFILTER_INCLUDE_CHAR_LIST); wxArrayString list; @@ -46,7 +46,7 @@ TimecodeBase::TimecodeBase (wxWindow* parent, bool set_button) _sizer = new wxBoxSizer (wxHORIZONTAL); _editable = new wxPanel (this); - wxSizer* editable_sizer = new wxBoxSizer (wxHORIZONTAL); + auto editable_sizer = new wxBoxSizer (wxHORIZONTAL); _hours = new wxTextCtrl (_editable, wxID_ANY, wxT(""), wxDefaultPosition, s, 0, validator); _hours->SetMaxLength (2); editable_sizer->Add (_hours); @@ -131,7 +131,7 @@ wxSize TimecodeBase::size (wxWindow* parent) { wxClientDC dc (parent); - wxSize size = dc.GetTextExtent (wxT ("9999")); + auto size = dc.GetTextExtent(wxT("9999")); size.SetHeight (-1); return size; } -- cgit v1.2.3