X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fgentime.h;h=8b735b44ed290b0a3ab842e2359f8a05afb1f961;hb=4ae3260592acc87712db77b7d3fe0cc2be7d76bc;hp=e927eabbc9f54a2f8f6cd4a633463ce0e6c33dbf;hpb=df42e5f4903295ad1ed4c67aec62fb5dd7c755ab;p=kdenlive diff --git a/src/gentime.h b/src/gentime.h index e927eabb..8b735b44 100644 --- a/src/gentime.h +++ b/src/gentime.h @@ -59,12 +59,19 @@ public: /* * Operators. */ + + /// Unary minus + GenTime operator -() { + return GenTime(-m_time); + } + /// Addition GenTime & operator+=(GenTime op) { m_time += op.m_time; return *this; } + /// Subtraction GenTime & operator-=(GenTime op) { m_time -= op.m_time; return *this; @@ -115,7 +122,7 @@ public: } private: - /** Holds the time for this object. */ + /** Holds the time in seconds for this object. */ double m_time; /** A delta value that is used to get around floating point rounding issues. */