Prefer references instead of pointers (mainly for types as Point/Size/Rect)

This commit is contained in:
David Capello 2015-12-03 18:37:49 -03:00
parent 48838c743a
commit f8dbacf364

View File

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