From: Carl Hetherington Date: Wed, 28 Sep 2022 23:03:43 +0000 (+0200) Subject: Add operator* for Time and int. X-Git-Tag: v2.17.10~69 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=c0bc376cc04f36c92f7a136e405e4cb1ea16cf99;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); }