summaryrefslogtreecommitdiff
path: root/src/wx/timecode.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-11 16:46:13 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-11 16:46:13 +0100
commit9b946fc5250eff5a5dd4a661896916fcd5d9bd4b (patch)
tree2626cce11334b2019bda77087e8ac4496afd61da /src/wx/timecode.cc
parent0241df1707c7ea5658f471828ff6dc944e21af42 (diff)
More c++ tidying.
Diffstat (limited to 'src/wx/timecode.cc')
-rw-r--r--src/wx/timecode.cc6
1 files changed, 3 insertions, 3 deletions
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;
}