change return const value to value

This commit is contained in:
andyque 2014-09-12 14:39:22 +08:00
parent c81cfc1ecf
commit 294271682b
22 changed files with 22 additions and 22 deletions

View File

@ -465,7 +465,7 @@ void Button::adaptRenderers()
}
}
const Size Button::getVirtualRendererSize() const
Size Button::getVirtualRendererSize() const
{
Size titleSize = _titleRenderer->getContentSize();
if (!_normalTextureLoaded && _titleRenderer->getString().size() > 0) {

View File

@ -170,7 +170,7 @@ public:
virtual void ignoreContentAdaptWithSize(bool ignore) override;
//override "getVirtualRendererSize" method of widget.
virtual const Size getVirtualRendererSize() const override;
virtual Size getVirtualRendererSize() const override;
//override "getVirtualRenderer" method of widget.
virtual Node* getVirtualRenderer() override;

View File

@ -450,7 +450,7 @@ void CheckBox::adaptRenderers()
}
}
const Size CheckBox::getVirtualRendererSize() const
Size CheckBox::getVirtualRendererSize() const
{
return _backGroundBoxRenderer->getContentSize();
}

View File

@ -184,7 +184,7 @@ public:
//override "getVirtualRendererSize" method of widget.
virtual const Size getVirtualRendererSize() const override;
virtual Size getVirtualRendererSize() const override;
//override "getVirtualRenderer" method of widget.
virtual Node* getVirtualRenderer() override;

View File

@ -238,7 +238,7 @@ void ImageView::adaptRenderers()
}
}
const Size ImageView::getVirtualRendererSize() const
Size ImageView::getVirtualRendererSize() const
{
return _imageTextureSize;
}

View File

@ -108,7 +108,7 @@ public:
*/
virtual std::string getDescription() const override;
virtual const Size getVirtualRendererSize() const override;
virtual Size getVirtualRendererSize() const override;
virtual Node* getVirtualRenderer() override;
CC_CONSTRUCTOR_ACCESS:

View File

@ -265,7 +265,7 @@ void LoadingBar::ignoreContentAdaptWithSize(bool ignore)
}
}
const Size LoadingBar::getVirtualRendererSize() const
Size LoadingBar::getVirtualRendererSize() const
{
return _barRendererTextureSize;
}

View File

@ -130,7 +130,7 @@ public:
virtual void ignoreContentAdaptWithSize(bool ignore) override;
//override "getVirtualRendererSize" method of widget.
virtual const Size getVirtualRendererSize() const override;
virtual Size getVirtualRendererSize() const override;
//override "getVirtualRenderer" method of widget.
virtual Node* getVirtualRenderer() override;

View File

@ -451,7 +451,7 @@ void RichText::setAnchorPoint(const Vec2 &pt)
_elementRenderersContainer->setAnchorPoint(pt);
}
const Size RichText::getVirtualRendererSize() const
Size RichText::getVirtualRendererSize() const
{
return _elementRenderersContainer->getContentSize();
}

View File

@ -106,7 +106,7 @@ public:
void setVerticalSpace(float space);
virtual void setAnchorPoint(const Vec2 &pt);
virtual const Size getVirtualRendererSize() const override;
virtual Size getVirtualRendererSize() const override;
void formatText();
virtual void ignoreContentAdaptWithSize(bool ignore);
virtual std::string getDescription() const override;

View File

@ -449,7 +449,7 @@ void Slider::adaptRenderers()
}
}
const Size Slider::getVirtualRendererSize() const
Size Slider::getVirtualRendererSize() const
{
return _barRenderer->getContentSize();
}

View File

@ -194,7 +194,7 @@ public:
virtual void onTouchCancelled(Touch *touch, Event *unusedEvent) override;
//override "getVirtualRendererSize" method of widget.
virtual const Size getVirtualRendererSize() const override;
virtual Size getVirtualRendererSize() const override;
//override "getVirtualRenderer" method of widget.
virtual Node* getVirtualRenderer() override;

View File

@ -292,7 +292,7 @@ void Text::adaptRenderers()
}
}
const Size Text::getVirtualRendererSize() const
Size Text::getVirtualRendererSize() const
{
return _labelRenderer->getContentSize();
}

View File

@ -139,7 +139,7 @@ public:
bool isTouchScaleChangeEnabled()const;
//override "getVirtualRendererSize" method of widget.
virtual const Size getVirtualRendererSize() const override;
virtual Size getVirtualRendererSize() const override;
//override "getVirtualRenderer" method of widget.
virtual Node* getVirtualRenderer() override;

View File

@ -135,7 +135,7 @@ void TextAtlas::adaptRenderers()
}
}
const Size TextAtlas::getVirtualRendererSize() const
Size TextAtlas::getVirtualRendererSize() const
{
return _labelAtlasRenderer->getContentSize();
}

View File

@ -93,7 +93,7 @@ public:
ssize_t getStringLength()const;
//override "getVirtualRendererSize" method of widget.
virtual const Size getVirtualRendererSize() const override;
virtual Size getVirtualRendererSize() const override;
//override "getVirtualRenderer" method of widget.
virtual Node* getVirtualRenderer() override;

View File

@ -129,7 +129,7 @@ void TextBMFont::adaptRenderers()
}
}
const Size TextBMFont::getVirtualRendererSize() const
Size TextBMFont::getVirtualRendererSize() const
{
return _labelBMFontRenderer->getContentSize();
}

View File

@ -81,7 +81,7 @@ public:
*/
ssize_t getStringLength()const;
virtual const Size getVirtualRendererSize() const override;
virtual Size getVirtualRendererSize() const override;
virtual Node* getVirtualRenderer() override;
/**
* Returns the "class name" of widget.

View File

@ -737,7 +737,7 @@ void TextField::textfieldRendererScaleChangedWithSize()
_textFieldRenderer->setPosition(_contentSize.width / 2.0f, _contentSize.height / 2.0f);
}
const Size TextField::getVirtualRendererSize() const
Size TextField::getVirtualRendererSize() const
{
return _textFieldRenderer->getContentSize();
}

View File

@ -187,7 +187,7 @@ public:
*/
virtual std::string getDescription() const override;
virtual const Size getVirtualRendererSize() const override;
virtual Size getVirtualRendererSize() const override;
virtual Node* getVirtualRenderer() override;
void attachWithIME();
virtual void onEnter() override;

View File

@ -468,7 +468,7 @@ void Widget::onSizeChanged()
}
}
const Size Widget::getVirtualRendererSize() const
Size Widget::getVirtualRendererSize() const
{
return _contentSize;
}

View File

@ -489,7 +489,7 @@ public:
virtual Node* getVirtualRenderer();
virtual const Size getVirtualRendererSize() const;
virtual Size getVirtualRendererSize() const;
/**