projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement operator- for TimePoints.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
node.h
diff --git
a/synfig-core/trunk/src/synfig/node.h
b/synfig-core/trunk/src/synfig/node.h
index
ffb8f41
..
2705830
100644
(file)
--- a/
synfig-core/trunk/src/synfig/node.h
+++ b/
synfig-core/trunk/src/synfig/node.h
@@
-74,6
+74,9
@@
public:
inline TimePoint operator+(TimePoint lhs,const Time& rhs)
{ lhs.set_time(lhs.get_time()+rhs); return lhs; }
inline TimePoint operator+(TimePoint lhs,const Time& rhs)
{ lhs.set_time(lhs.get_time()+rhs); return lhs; }
+inline TimePoint operator-(TimePoint lhs,const Time& rhs)
+ { lhs.set_time(lhs.get_time()-rhs); return lhs; }
+
inline bool operator<(const TimePoint& lhs,const TimePoint& rhs)
{ return lhs.get_time()<rhs.get_time(); }
inline bool operator<(const TimePoint& lhs,const TimePoint& rhs)
{ return lhs.get_time()<rhs.get_time(); }