mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
Use const references whenever possible
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user