[aseprite] 40/308: Prefer references instead of pointers (mainly for types as Point/Size/Rect)

Tobias Hansen thansen at moszumanska.debian.org
Tue Mar 8 02:44:50 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit f8dbacf364e1b4a1f77a0c0f6a858b8ce94a2870
Author: David Capello <davidcapello at gmail.com>
Date:   Thu Dec 3 18:37:49 2015 -0300

    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 291dfc4..881cbda 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; i<m_celList.size(); ++i) {
     Cel* cel = m_celList[i];
-    gfx::Point* celStart = &m_celStarts[i];
+    const gfx::Point& celStart = m_celStarts[i];
 
-    cel->setPosition(*celStart + m_celOffset);
+    cel->setPosition(celStart + m_celOffset);
   }
 
   // Redraw the new cel position.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list