mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-04 15:40:10 +00:00
Use std::move to avoid unnecessary copies
This commit is contained in:
parent
ead2023cfd
commit
80afafa45a
@ -23,6 +23,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <utility>
|
||||
|
||||
namespace app {
|
||||
|
||||
@ -36,7 +37,7 @@ MovingSliceState::MovingSliceState(Editor* editor,
|
||||
: m_frame(editor->frame())
|
||||
, m_hit(hit)
|
||||
, m_items(std::max<std::size_t>(1, selectedSlices.size()))
|
||||
, m_pixelsMovement(pixelsMovement)
|
||||
, m_pixelsMovement(std::move(pixelsMovement))
|
||||
{
|
||||
m_mouseStart = editor->screenToEditor(msg->position());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user