issue #3162: change log to cpp file

This commit is contained in:
boyu0 2013-12-16 03:42:54 +08:00
parent 23af9dfd8d
commit f9f816caf9
4 changed files with 12 additions and 2 deletions

View File

@ -410,6 +410,11 @@ std::string Layer::getDescription() const
return StringUtils::format("<Layer | Tag = %d>", _tag);
}
__LayerRGBA::__LayerRGBA()
{
CCLOG("LayerRGBA deprecated.");
}
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
#pragma GCC diagnostic warning "-Wdeprecated-declarations"

View File

@ -222,7 +222,7 @@ public:
virtual bool isOpacityModifyRGB() const override { return Layer::isOpacityModifyRGB(); }
protected:
__LayerRGBA() {}
__LayerRGBA();
virtual ~__LayerRGBA() {}
private:

View File

@ -1570,4 +1570,9 @@ void Node::disableCascadeColor()
});
}
__NodeRGBA::__NodeRGBA()
{
CCLOG("NodeRGBA deprecated.");
}
NS_CC_END

View File

@ -1545,7 +1545,7 @@ public:
virtual bool isOpacityModifyRGB() const override { return Node::isOpacityModifyRGB(); }
protected:
CC_DEPRECATED_ATTRIBUTE __NodeRGBA() { CCLOG("NodeRGBA deprecated.");}
__NodeRGBA();
virtual ~__NodeRGBA() {}
private: