diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-19 13:54:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-19 13:54:18 +0100 |
| commit | 3857b8b178d94873a6ffc6f51cdb4c241fd54f90 (patch) | |
| tree | c321ebefb8ee1b6bd605969e6e1b2f01a2c59233 /src/wx/timecode.cc | |
| parent | a6d892268ccdf8e50194c0168491c8a360bbb687 (diff) | |
Fix unnecessary shared_ptr; add missing checked_set()s.
Diffstat (limited to 'src/wx/timecode.cc')
| -rw-r--r-- | src/wx/timecode.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/timecode.cc b/src/wx/timecode.cc index 82c27c5b5..36a01f90d 100644 --- a/src/wx/timecode.cc +++ b/src/wx/timecode.cc @@ -84,10 +84,10 @@ Timecode::set (Time t, int fps) t -= s * TIME_HZ; int const f = t * fps / TIME_HZ; - _hours->SetValue (wxString::Format (wxT ("%d"), h)); - _minutes->SetValue (wxString::Format (wxT ("%d"), m)); - _seconds->SetValue (wxString::Format (wxT ("%d"), s)); - _frames->SetValue (wxString::Format (wxT ("%d"), f)); + checked_set (_hours, lexical_cast<string> (h)); + checked_set (_minutes, lexical_cast<string> (m)); + checked_set (_seconds, lexical_cast<string> (s)); + checked_set (_frames, lexical_cast<string> (f)); } Time |
