From 1ecdc81645686fcc5a8fb2cb55313d2ca5d1d4a8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 29 Sep 2022 01:03:43 +0200 Subject: Add operator* for Time and int. --- src/lib/dcpomatic_time.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h index 9e7191b1e..583ff3a46 100644 --- a/src/lib/dcpomatic_time.h +++ b/src/lib/dcpomatic_time.h @@ -152,6 +152,10 @@ public: return *this; } + Time operator* (int o) const { + return Time (_t * o); + } + Time operator/ (int o) const { return Time (_t / o); } -- cgit v1.2.3