]> git.sesse.net Git - kdenlive/blobdiff - src/commands/moveeffectcommand.cpp
Const'ref
[kdenlive] / src / commands / moveeffectcommand.cpp
index c077128803d5e048199b9069d956e23eca13dc19..5be578e290608d8cf12e890ccbb513f09cbe35fa 100644 (file)
 #include "customtrackview.h"
 
 #include <KLocale>
+#include <KDebug>
 
-MoveEffectCommand::MoveEffectCommand(CustomTrackView *view, const int track, GenTime pos, const QList<int> &oldPos, int newPos, QUndoCommand * parent) :
-        QUndoCommand(parent),
-        m_view(view),
-        m_track(track),
-        m_oldindex(oldPos),
-        m_pos(pos)
+MoveEffectCommand::MoveEffectCommand(CustomTrackView *view, const int track, const GenTime &pos, const QList<int> &oldPos, int newPos, QUndoCommand * parent) :
+    QUndoCommand(parent),
+    m_view(view),
+    m_track(track),
+    m_oldindex(oldPos),
+    m_pos(pos)
 {
-    for (int i = 0; i < m_oldindex.count(); i++) {
-       m_newindex << newPos + i;
+    for (int i = 0; i < m_oldindex.count(); ++i) {
+        m_newindex << newPos + i;
     }
     /*    QString effectName;
         QDomElement namenode = effect.firstChildElement("name");