]> git.sesse.net Git - kdenlive/blobdiff - src/moveclipcommand.h
Fix possible crash on effect change
[kdenlive] / src / moveclipcommand.h
index 54a4a721c460a3eab28de3a21e383e9b2cc78c40..933318887488c3f80402493d57b22115d0da6bf4 100644 (file)
 
 class CustomTrackView;
 
-class MoveClipCommand : public QUndoCommand {
+class MoveClipCommand : public QUndoCommand
+{
 public:
-    MoveClipCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt);
+    MoveClipCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, QUndoCommand * parent = 0);
     virtual void undo();
     virtual void redo();
 
 private:
     CustomTrackView *m_view;
-    ItemInfo m_startPos;
-    ItemInfo m_endPos;
+    const ItemInfo m_startPos;
+    const ItemInfo m_endPos;
     bool m_doIt;
 };