Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
19b71a69
Commit
19b71a69
authored
Jul 28, 2016
by
luyikei
Browse files
Don't use std:swap in Commands::Clip::Move
parent
09b1ea40
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Commands/Commands.cpp
View file @
19b71a69
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment