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.0~1 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=f1263cd43ad761e63047baf7c674f5de04c0139c;p=dcpomatic.git Add operator* for Time and int. --- 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); }