mirror of https://github.com/axmolengine/axmol.git
closed #5110, add const specifier to getStringLength function
This commit is contained in:
parent
09fce798f0
commit
9d5c2ba773
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ public:
|
|||
*
|
||||
* @return string length.
|
||||
*/
|
||||
ssize_t getStringLength();
|
||||
ssize_t getStringLength()const;
|
||||
|
||||
/**
|
||||
* Sets the font size of label.
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -108,7 +108,7 @@ const std::string& TextBMFont::getString()const
|
|||
return _stringValue;
|
||||
}
|
||||
|
||||
ssize_t TextBMFont::getStringLength()
|
||||
ssize_t TextBMFont::getStringLength()const
|
||||
{
|
||||
return _labelBMFontRenderer->getStringLength();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue