projects
/
libdcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add operator-= to Time.
[libdcp.git]
/
src
/
dcp_time.h
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);
};