summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-29 01:03:43 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-03 17:53:24 +0200
commitf1263cd43ad761e63047baf7c674f5de04c0139c (patch)
treec1dcae6dd0f5bc12ee4dc8f57db11ddeb2dd47f3
parent3fd19cb3ba87bba324feb5759e23dcb1f98cc84e (diff)
Add operator* for Time and int.
-rw-r--r--src/lib/dcpomatic_time.h4
1 files changed, 4 insertions, 0 deletions
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<S, O> operator* (int o) const {
+ return Time<S, O> (_t * o);
+ }
+
Time<S, O> operator/ (int o) const {
return Time<S, O> (_t / o);
}