Added const to CCNode's getTag & getContentSize

This commit is contained in:
Xavier Arias 2013-05-09 00:20:08 +02:00
parent c4965f8ca5
commit 1c6c13b3e5
2 changed files with 4 additions and 4 deletions

View File

@ -392,7 +392,7 @@ void CCNode::setAnchorPoint(const CCPoint& point)
}
/// contentSize getter
const CCSize& CCNode::getContentSize()
const CCSize& CCNode::getContentSize() const
{
return m_obContentSize;
}
@ -441,7 +441,7 @@ void CCNode::ignoreAnchorPointForPosition(bool newValue)
}
/// tag getter
int CCNode::getTag()
int CCNode::getTag() const
{
return m_nTag;
}

View File

@ -412,7 +412,7 @@ public:
*
* @return The untransformed size of the node.
*/
virtual const CCSize& getContentSize();
virtual const CCSize& getContentSize() const;
/**
@ -757,7 +757,7 @@ public:
*
* @return A interger that identifies the node.
*/
virtual int getTag();
virtual int getTag() const;
/**
* Changes the tag that is used to identify the node easily.
*