From a8c317bd832839c98dab03ca4b91b11791473ef7 Mon Sep 17 00:00:00 2001 From: Ricardo Quesada Date: Thu, 12 Dec 2013 14:30:22 -0800 Subject: [PATCH 1/2] getDescription() works as expected renames `description` to `getDescription`. Adds `virtual` to it. Adds `getDescription` to missing nodes. --- cocos/2d/CCLabel.cpp | 5 +++++ cocos/2d/CCLabel.h | 2 ++ cocos/2d/CCLabelAtlas.cpp | 5 +++++ cocos/2d/CCLabelAtlas.h | 3 ++- cocos/2d/CCLabelBMFont.cpp | 4 ++++ cocos/2d/CCLabelBMFont.h | 6 ++++-- cocos/2d/CCLabelTTF.cpp | 4 ++-- cocos/2d/CCLabelTTF.h | 22 ++++++++++------------ cocos/2d/CCLayer.cpp | 26 ++++++++++++++++++++++++++ cocos/2d/CCLayer.h | 15 +++++++++++++-- cocos/2d/CCMenu.cpp | 6 ++++++ cocos/2d/CCMenu.h | 2 ++ cocos/2d/CCMenuItem.cpp | 4 ++++ cocos/2d/CCMenuItem.h | 3 +++ cocos/2d/CCNode.cpp | 2 +- cocos/2d/CCNode.h | 4 ++-- cocos/2d/CCParticleSystemQuad.cpp | 5 +++++ cocos/2d/CCParticleSystemQuad.h | 2 ++ cocos/2d/CCScene.cpp | 5 +++++ cocos/2d/CCScene.h | 1 + cocos/2d/CCSprite.cpp | 10 ++++++++++ cocos/2d/CCSprite.h | 2 ++ cocos/2d/CCSpriteBatchNode.cpp | 5 +++++ cocos/2d/CCSpriteBatchNode.h | 1 + cocos/2d/CCTMXLayer.cpp | 6 ++++++ cocos/2d/CCTMXLayer.h | 2 +- cocos/2d/CCTMXTiledMap.cpp | 7 ++++++- cocos/2d/CCTMXTiledMap.h | 4 +++- cocos/base/CCConsole.cpp | 13 ++++++++----- 29 files changed, 146 insertions(+), 30 deletions(-) diff --git a/cocos/2d/CCLabel.cpp b/cocos/2d/CCLabel.cpp index 0310f69cba..ca94d2b4f9 100644 --- a/cocos/2d/CCLabel.cpp +++ b/cocos/2d/CCLabel.cpp @@ -736,5 +736,10 @@ void Label::setCascadeColorEnabled(bool cascadeColorEnabled) _cascadeColorEnabled = cascadeColorEnabled; } +std::string Label::getDescription() const +{ + return StringUtils::format("