From: dooglus Date: Sun, 21 Oct 2007 21:36:18 +0000 (+0000) Subject: Implement operator- for TimePoints. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fdc6a114ef93e7728172b14cbd5da9cd7982d282;p=synfig.git Implement operator- for TimePoints. git-svn-id: http://svn.voria.com/code@939 1f10aa63-cdf2-0310-b900-c93c546f37ac --- 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()