projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ce9ab7
)
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>
Sun, 28 Jan 2024 01:01:39 +0000
(
02:01
+0100)
src/lib/dcpomatic_time.h
patch
|
blob
|
history
diff --git
a/src/lib/dcpomatic_time.h
b/src/lib/dcpomatic_time.h
index 1b12ea901653ead8afd3f935679eaea8ecf6e57a..9ebb334fe118e284e9cb609d53b75e3e29b4cf3a 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);
}