Commit 19b71a69 authored by luyikei's avatar luyikei
Browse files

Don't use std:swap in Commands::Clip::Move

parent 09b1ea40
......@@ -147,7 +147,6 @@ Commands::Clip::Move::internalRedo()
{
m_clip = m_oldTrack->removeClip( m_clip->uuid() );
m_newTrack->addClip( m_clip, m_newPos );
std::swap( m_oldTrack, m_newTrack );
}
else
m_oldTrack->moveClip( m_clip->uuid(), m_newPos );
......@@ -158,9 +157,8 @@ Commands::Clip::Move::internalUndo()
{
if ( m_newTrack != m_oldTrack )
{
m_clip = m_oldTrack->removeClip( m_clip->uuid() );
m_newTrack->addClip( m_clip, m_newPos );
std::swap( m_oldTrack, m_newTrack );
m_clip = m_newTrack->removeClip( m_clip->uuid() );
m_oldTrack->addClip( m_clip, m_oldPos );
}
else
m_newTrack->moveClip( m_clip->uuid(), m_oldPos );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment