projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca840a4
)
Add operator-= to Time.
author
Carl Hetherington
<cth@carlh.net>
Mon, 15 Mar 2021 00:30:47 +0000
(
01:30
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 15 Mar 2021 00:30:47 +0000
(
01:30
+0100)
src/dcp_time.h
patch
|
blob
|
history
diff --git
a/src/dcp_time.h
b/src/dcp_time.h
index 997b8d13f019c78c0242b0bb42c6a6168c49044c..dcbadf31294137036654a9c06478a3494bb3da09 100644
(file)
--- a/
src/dcp_time.h
+++ b/
src/dcp_time.h
@@
-142,6
+142,11
@@
public:
return *this;
}
+ Time& operator-= (Time const & o) {
+ *this = *this - o;
+ return *this;
+ }
+
private:
void set (double seconds, int tcr);
};