From: Jean-Baptiste Mardelle Date: Tue, 12 Jan 2010 09:23:03 +0000 (+0000) Subject: indent X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=8eebc1c84fdcb135e0a7f03bc6920d6630c6b055;p=kdenlive indent svn path=/trunk/kdenlive/; revision=4225 --- diff --git a/src/timecode.cpp b/src/timecode.cpp index 12f5bff3..607a0af5 100644 --- a/src/timecode.cpp +++ b/src/timecode.cpp @@ -102,7 +102,7 @@ const QString Timecode::getTimecodeFromFrames(int frames) const QString Timecode::getStringTimecode(int frames, const double &fps) { // Returns the timecode in an hh:mm:ss format - int seconds = (int) (frames / fps); + int seconds = (int)(frames / fps); int minutes = seconds / 60; seconds = seconds % 60; int hours = minutes / 60; @@ -122,8 +122,8 @@ QString Timecode::getEasyTimecode(const GenTime & time, const double &fps) { // Returns the timecode in an easily read display, like 3 min. 5 sec. int frames = (int) time.frames(fps); - int seconds = (int) (frames / fps); - frames = frames - ((int) (fps * seconds)); + int seconds = (int)(frames / fps); + frames = frames - ((int)(fps * seconds)); int minutes = seconds / 60; seconds = seconds % 60;