closed #5110, add const specifier to getStringLength function

This commit is contained in:
andyque 2014-05-14 16:25:30 +08:00
parent 09fce798f0
commit 9d5c2ba773
6 changed files with 6 additions and 6 deletions

View File

@ -115,7 +115,7 @@ const std::string& Text::getString() const
return _labelRenderer->getString();
}
ssize_t Text::getStringLength()
ssize_t Text::getStringLength()const
{
return _labelRenderer->getStringLength();
}

View File

@ -87,7 +87,7 @@ public:
*
* @return string length.
*/
ssize_t getStringLength();
ssize_t getStringLength()const;
/**
* Sets the font size of label.

View File

@ -114,7 +114,7 @@ const std::string& TextAtlas::getString() const
return _labelAtlasRenderer->getString();
}
ssize_t TextAtlas::getStringLength()
ssize_t TextAtlas::getStringLength()const
{
return _labelAtlasRenderer->getStringLength();
}

View File

@ -87,7 +87,7 @@ public:
*
* @return string length.
*/
ssize_t getStringLength();
ssize_t getStringLength()const;
//override "getVirtualRendererSize" method of widget.
virtual const Size& getVirtualRendererSize() const override;

View File

@ -108,7 +108,7 @@ const std::string& TextBMFont::getString()const
return _stringValue;
}
ssize_t TextBMFont::getStringLength()
ssize_t TextBMFont::getStringLength()const
{
return _labelBMFontRenderer->getStringLength();
}

View File

@ -76,7 +76,7 @@ public:
*
* @return string length.
*/
ssize_t getStringLength();
ssize_t getStringLength()const;
virtual const Size& getVirtualRendererSize() const override;
virtual Node* getVirtualRenderer() override;