[aseprite] 34/51: We can return a const& in Cel::position()
Tobias Hansen
thansen at moszumanska.debian.org
Mon Jul 11 21:35:18 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 3df65721709cad6ef83b143f910e993f754286d9
Author: David Capello <davidcapello at gmail.com>
Date: Fri Jul 1 18:41:26 2016 -0300
We can return a const& in Cel::position()
---
src/doc/cel.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/doc/cel.h b/src/doc/cel.h
index f9666d2..4d2ad86 100644
--- a/src/doc/cel.h
+++ b/src/doc/cel.h
@@ -1,5 +1,5 @@
// Aseprite Document Library
-// Copyright (c) 2001-2015 David Capello
+// Copyright (c) 2001-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
@@ -33,7 +33,7 @@ namespace doc {
frame_t frame() const { return m_frame; }
int x() const { return m_data->position().x; }
int y() const { return m_data->position().y; }
- gfx::Point position() const { return m_data->position(); }
+ const gfx::Point& position() const { return m_data->position(); }
int opacity() const { return m_data->opacity(); }
LayerImage* layer() const { return m_layer; }
--
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