X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcommands%2Fmoveeffectcommand.cpp;h=a96fcc4016e1f42d40796c505b5b59f36863309f;hb=f2fe0d6c467877c59f3fa4eb7f20cf79d1814b66;hp=e290ff2aca83d3180a7f0115f52e6b1d3ce1512c;hpb=e0fa1332f109b6455207ea701da386b2fddddf09;p=kdenlive diff --git a/src/commands/moveeffectcommand.cpp b/src/commands/moveeffectcommand.cpp index e290ff2a..a96fcc40 100644 --- a/src/commands/moveeffectcommand.cpp +++ b/src/commands/moveeffectcommand.cpp @@ -21,17 +21,18 @@ #include "moveeffectcommand.h" #include "customtrackview.h" -#include +#include +#include MoveEffectCommand::MoveEffectCommand(CustomTrackView *view, const int track, const GenTime &pos, const QList &oldPos, int newPos, QUndoCommand * parent) : - QUndoCommand(parent), - m_view(view), - m_track(track), - m_oldindex(oldPos), - m_pos(pos) + 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; + m_newindex << newPos + i; } /* QString effectName; QDomElement namenode = effect.firstChildElement("name"); @@ -50,13 +51,16 @@ int MoveEffectCommand::id() const // virtual bool MoveEffectCommand::mergeWith(const QUndoCommand * other) { + Q_UNUSED(other) return false; + /* dead code (flaged by coverity), was removed to avoid crash when dropping on group if (other->id() != id()) return false; if (m_track != static_cast(other)->m_track) return false; if (m_pos != static_cast(other)->m_pos) return false; m_oldindex = static_cast(other)->m_oldindex; m_newindex = static_cast(other)->m_newindex; return true; + */ } // virtual