add constness to UILoadingBar

This commit is contained in:
andyque 2014-05-27 10:42:11 +08:00
parent 0518e494b1
commit 78ac4b4d86
2 changed files with 4 additions and 4 deletions

View File

@ -217,7 +217,7 @@ void LoadingBar::setScale9Enabled(bool enabled)
setPercent(_percent);
}
bool LoadingBar::isScale9Enabled()
bool LoadingBar::isScale9Enabled()const
{
return _scale9Enabled;
}
@ -232,7 +232,7 @@ void LoadingBar::setCapInsets(const Rect &capInsets)
static_cast<extension::Scale9Sprite*>(_barRenderer)->setCapInsets(capInsets);
}
const Rect& LoadingBar::getCapInsets()
const Rect& LoadingBar::getCapInsets()const
{
return _capInsets;
}

View File

@ -114,7 +114,7 @@ public:
*/
void setScale9Enabled(bool enabled);
bool isScale9Enabled();
bool isScale9Enabled()const;
/**
* Sets capinsets for loadingbar, if loadingbar is using scale9 renderer.
@ -123,7 +123,7 @@ public:
*/
void setCapInsets(const Rect &capInsets);
const Rect& getCapInsets();
const Rect& getCapInsets()const;
//override "ignoreContentAdaptWithSize" method of widget.
virtual void ignoreContentAdaptWithSize(bool ignore) override;