Use const references whenever possible

This commit is contained in:
Wenhai Lin
2016-05-18 14:55:47 +08:00
parent 5dcd5ed979
commit 7c57507422
20 changed files with 42 additions and 42 deletions
@@ -26,7 +26,7 @@ THE SOFTWARE.
NS_CC_EXT_BEGIN
Sprite* ControlUtils::addSpriteToTargetWithPosAndAnchor(const char* spriteName, Node * target, Vec2 pos, Vec2 anchor)
Sprite* ControlUtils::addSpriteToTargetWithPosAndAnchor(const char* spriteName, Node * target, const Vec2& pos, const Vec2& anchor)
{
Sprite *sprite =Sprite::createWithSpriteFrameName(spriteName);