]> git.sesse.net Git - kdenlive/blobdiff - src/timecodedisplay.cpp
cleanup
[kdenlive] / src / timecodedisplay.cpp
index 69c2690f3eae655c44b2046a16d89c72e25a9305..7c996ebfa057252ce0be817c452420af08c3f95e 100644 (file)
@@ -123,10 +123,8 @@ int TimecodeDisplay::minimum() const
 
 int TimecodeDisplay::value() const
 {
-    int frames;
-    if (m_frametimecode) frames = lineedit->text().toInt();
-    else frames = m_timecode.getFrameCount(lineedit->text());
-    return frames;
+    if (m_frametimecode) return lineedit->text().toInt();
+    else return m_timecode.getFrameCount(lineedit->text());
 }
 
 GenTime TimecodeDisplay::gentime() const
@@ -164,8 +162,6 @@ void TimecodeDisplay::setValue(int value)
         lineedit->setText(QString::number(value));
     else
         lineedit->setText(m_timecode.getTimecodeFromFrames(value));
-
-    //emit valueChanged(value, true);
 }
 
 void TimecodeDisplay::setValue(GenTime value)