]> git.sesse.net Git - kdenlive/blobdiff - src/gentime.h
Fix indent
[kdenlive] / src / gentime.h
index e927eabbc9f54a2f8f6cd4a633463ce0e6c33dbf..8b735b44ed290b0a3ab842e2359f8a05afb1f961 100644 (file)
@@ -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. */