[aseprite] 46/308: Use const& instead of pointers

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 7125643febf8bccf389e87f04f7d656093e29866
Author: David Capello <davidcapello at gmail.com>
Date:   Thu Dec 3 21:51:59 2015 -0300

    Use const& instead of pointers
---
 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 7a02389..65cbf8e 100644
--- a/src/app/ui/editor/moving_cel_state.cpp
+++ b/src/app/ui/editor/moving_cel_state.cpp
@@ -85,9 +85,9 @@ bool MovingCelState::onMouseUp(Editor* editor, MouseMessage* msg)
     // Put the cels in the original position.
     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);
+      cel->setPosition(celStart);
     }
 
     // If the user didn't cancel the operation...

-- 
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