mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 00:23:35 +00:00
We can return a const& in Cel::position()
This commit is contained in:
parent
c1f8c98ca8
commit
3df6572170
@ -1,5 +1,5 @@
|
|||||||
// Aseprite Document Library
|
// 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.
|
// This file is released under the terms of the MIT license.
|
||||||
// Read LICENSE.txt for more information.
|
// Read LICENSE.txt for more information.
|
||||||
@ -33,7 +33,7 @@ namespace doc {
|
|||||||
frame_t frame() const { return m_frame; }
|
frame_t frame() const { return m_frame; }
|
||||||
int x() const { return m_data->position().x; }
|
int x() const { return m_data->position().x; }
|
||||||
int y() const { return m_data->position().y; }
|
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(); }
|
int opacity() const { return m_data->opacity(); }
|
||||||
|
|
||||||
LayerImage* layer() const { return m_layer; }
|
LayerImage* layer() const { return m_layer; }
|
||||||
|
Loading…
Reference in New Issue
Block a user