mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-18 21:40:46 +00:00
Use const& instead of pointers
This commit is contained in:
parent
2a3f2d6a57
commit
7125643feb
@ -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...
|
||||
|
Loading…
x
Reference in New Issue
Block a user