Use const references whenever possible

This commit is contained in:
Wenhai Lin
2016-05-18 14:26:43 +08:00
parent 94c6dcdf6a
commit 5dcd5ed979
33 changed files with 72 additions and 72 deletions
@@ -253,7 +253,7 @@ void ControlStepper::update(float dt)
//// ControlStepper Private Methods
void ControlStepper::updateLayoutUsingTouchLocation(Vec2 location)
void ControlStepper::updateLayoutUsingTouchLocation(const Vec2& location)
{
if (location.x < _minusSprite->getContentSize().width
&& _value > _minimumValue)