From: Carl Hetherington Date: Wed, 28 Sep 2022 23:03:43 +0000 (+0200) Subject: Add operator* for Time and int. X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=d9751ad986905095db13cb147010b61c72b4332e;p=dcpomatic.git Add operator* for Time and int. --- diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h index 1b12ea901..9ebb334fe 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); }