From 3857b8b178d94873a6ffc6f51cdb4c241fd54f90 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 19 Jul 2013 13:54:18 +0100 Subject: Fix unnecessary shared_ptr; add missing checked_set()s. --- src/wx/timecode.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/wx/timecode.cc') 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 (h)); + checked_set (_minutes, lexical_cast (m)); + checked_set (_seconds, lexical_cast (s)); + checked_set (_frames, lexical_cast (f)); } Time -- cgit v1.2.3