From b8248a165b7ac2da7b413f7dac026ff710239154 Mon Sep 17 00:00:00 2001 From: dzl-ian Date: Tue, 29 Jul 2014 13:47:21 +0900 Subject: [PATCH] Correct some typos/mistakes in declarations --- cocos/ui/UIText.cpp | 2 +- cocos/ui/UIText.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/ui/UIText.cpp b/cocos/ui/UIText.cpp index 99cca3204a..894db64db4 100644 --- a/cocos/ui/UIText.cpp +++ b/cocos/ui/UIText.cpp @@ -208,7 +208,7 @@ TextVAlignment Text::getTextVerticalAlignment()const return _labelRenderer->getVerticalAlignment(); } -void Text::setTextColor(Color4B color) +void Text::setTextColor(const Color4B color) { _labelRenderer->setTextColor(color); } diff --git a/cocos/ui/UIText.h b/cocos/ui/UIText.h index 98734565ed..d08901b658 100644 --- a/cocos/ui/UIText.h +++ b/cocos/ui/UIText.h @@ -161,9 +161,9 @@ public: TextVAlignment getTextVerticalAlignment()const; - void setTextColor(Color4B color); + void setTextColor(const Color4B color); - const Color4B& getTextColor()const; + const Color4B& getTextColor() const; /** * Enable shadow for the label