From f8dbacf364e1b4a1f77a0c0f6a858b8ce94a2870 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 3 Dec 2015 18:37:49 -0300 Subject: [PATCH] Prefer references instead of pointers (mainly for types as Point/Size/Rect) --- src/app/ui/editor/moving_cel_state.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/ui/editor/moving_cel_state.cpp b/src/app/ui/editor/moving_cel_state.cpp index 291dfc4a7..881cbda9a 100644 --- a/src/app/ui/editor/moving_cel_state.cpp +++ b/src/app/ui/editor/moving_cel_state.cpp @@ -147,9 +147,9 @@ bool MovingCelState::onMouseMove(Editor* editor, MouseMessage* msg) for (size_t i=0; isetPosition(*celStart + m_celOffset); + cel->setPosition(celStart + m_celOffset); } // Redraw the new cel position.