]> git.sesse.net Git - kdenlive/blobdiff - src/gentime.cpp
Reindent the codebase using 'linux' bracket placement.
[kdenlive] / src / gentime.cpp
index 435cd7779f0c2107ddb5d62b2a607d79c38262f6..760d988885f0dc74b0b95e574fbfadbe861f3aef 100644 (file)
 double GenTime::s_delta = 0.00001;
 
 /** Creates a time object, with a time of 0 seconds. */
-GenTime::GenTime() {
+GenTime::GenTime()
+{
     m_time = 0.0;
 }
 
 /** Creates a time object, with time given in seconds. */
-GenTime::GenTime(double seconds) {
+GenTime::GenTime(double seconds)
+{
     m_time = seconds;
 }
 
 /** Creates a time object, by passing number of frames and how many frames per second */
-GenTime::GenTime(int frames, double framesPerSecond) {
+GenTime::GenTime(int frames, double framesPerSecond)
+{
     m_time = (double) frames / framesPerSecond;
 }
 
 /** Returns the time, in milliseconds */
-double GenTime::ms() const {
+double GenTime::ms() const
+{
     return m_time * 1000;
 }
 
 /** Returns the time in frames, after being given the number of frames per second */
-double GenTime::frames(double framesPerSecond) const {
+double GenTime::frames(double framesPerSecond) const
+{
     return floor(m_time * framesPerSecond + 0.5);
 }
 
-GenTime::~GenTime() {
+GenTime::~GenTime()
+{
 }