diff options
Diffstat (limited to 'src/wx/timecode.h')
| -rw-r--r-- | src/wx/timecode.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/wx/timecode.h b/src/wx/timecode.h index 96609155f..6a8043e2b 100644 --- a/src/wx/timecode.h +++ b/src/wx/timecode.h @@ -81,7 +81,8 @@ public: } - void set (T t, float fps) + template <class F> + void set(T t, F fps) { auto const hmsf = t.split (fps); @@ -93,7 +94,8 @@ public: checked_set (_fixed, t.timecode (fps)); } - void set_hint (T t, float fps) + template <class F> + void set_hint(T t, F fps) { auto hmsf = t.split (fps); @@ -124,7 +126,8 @@ public: value_or_hint(_frames) }; } - T get (float fps) const + template <class F> + T get(F fps) const { return T(get(), fps); } |
