From fdc6a114ef93e7728172b14cbd5da9cd7982d282 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 21 Oct 2007 21:36:18 +0000 Subject: [PATCH] Implement operator- for TimePoints. git-svn-id: http://svn.voria.com/code@939 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/node.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/synfig-core/trunk/src/synfig/node.h b/synfig-core/trunk/src/synfig/node.h index ffb8f41..2705830 100644 --- 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 bool operator<(const TimePoint& lhs,const TimePoint& rhs) { return lhs.get_time()