mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 21:19:18 +00:00
Prefer references instead of pointers (mainly for types as Point/Size/Rect)
This commit is contained in:
parent
48838c743a
commit
f8dbacf364
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user