add constness to UICheckBox

This commit is contained in:
andyque 2014-05-27 11:08:23 +08:00
parent f87e4243ee
commit eb91aed3f2
2 changed files with 2 additions and 2 deletions

View File

@ -343,7 +343,7 @@ void CheckBox::setSelectedState(bool selected)
_frontCrossRenderer->setVisible(_isSelected); _frontCrossRenderer->setVisible(_isSelected);
} }
bool CheckBox::getSelectedState() bool CheckBox::getSelectedState()const
{ {
return _isSelected; return _isSelected;
} }

View File

@ -170,7 +170,7 @@ public:
* *
* @return selected true that checkbox is selected, false otherwise. * @return selected true that checkbox is selected, false otherwise.
*/ */
bool getSelectedState(); bool getSelectedState()const;
//add a call back function would called when checkbox is selected or unselected. //add a call back function would called when checkbox is selected or unselected.
CC_DEPRECATED_ATTRIBUTE void addEventListenerCheckBox(Ref* target,SEL_SelectedStateEvent selector); CC_DEPRECATED_ATTRIBUTE void addEventListenerCheckBox(Ref* target,SEL_SelectedStateEvent selector);