]> git.sesse.net Git - kdenlive/blobdiff - src/commands/resizeclipcommand.cpp
Const'ref
[kdenlive] / src / commands / resizeclipcommand.cpp
index ca0689dee352260ec0e3e5e77ca36b3451838b28..aef17634d6605613951aaf831c898fa51f440980 100644 (file)
  ***************************************************************************/
 
 
-#include "commands/resizeclipcommand.h"
+#include "resizeclipcommand.h"
 #include "customtrackview.h"
 
 #include <KLocale>
 
-ResizeClipCommand::ResizeClipCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, bool dontWorry, QUndoCommand * parent) :
-        QUndoCommand(parent),
-        m_view(view),
-        m_startPos(start),
-        m_endPos(end),
-        m_doIt(doIt),
-        m_dontWorry(dontWorry)
+ResizeClipCommand::ResizeClipCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, bool dontWorry, QUndoCommand * parent) :
+    QUndoCommand(parent),
+    m_view(view),
+    m_startPos(start),
+    m_endPos(end),
+    m_doIt(doIt),
+    m_dontWorry(dontWorry)
 {
     setText(i18n("Resize clip"));
 }
@@ -42,7 +42,9 @@ void ResizeClipCommand::undo()
 // virtual
 void ResizeClipCommand::redo()
 {
-    if (m_doIt) m_view->resizeClip(m_startPos, m_endPos, m_dontWorry);
+    if (m_doIt) {
+        m_view->resizeClip(m_startPos, m_endPos, m_dontWorry);
+    }
     m_doIt = true;
 }