projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4498e50
)
Add operator* for Time and int.
author
Carl Hetherington
<cth@carlh.net>
Wed, 28 Sep 2022 23:03:43 +0000
(
01:03
+0200)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 22 Dec 2022 23:11:11 +0000
(
00:11
+0100)
src/lib/dcpomatic_time.h
patch
|
blob
|
history
diff --git
a/src/lib/dcpomatic_time.h
b/src/lib/dcpomatic_time.h
index 9e7191b1eb7dc239a890aebc2d6efa5fe81d3f75..583ff3a463c5961225071540870f0a6d60769eaf 100644
(file)
--- 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);
}