Fixed #4566: Fix coding style problems

This commit is contained in:
pandamicro 2014-03-27 10:01:46 +08:00
parent 44d446ef1d
commit 7f2255e485
1 changed files with 7 additions and 4 deletions

View File

@ -627,12 +627,13 @@ std::string LayerColor::getDescription() const
{
return StringUtils::format("<LayerColor | Tag = %d>", _tag);
}
//
// LayerGradient
//
LayerGradient::LayerGradient()
: _startColor(Color4B(0, 0, 0, 255))
, _endColor(Color4B(0, 0, 0, 255))
: _startColor(Color4B::BLACK)
, _endColor(Color4B::BLACK)
, _startOpacity(255)
, _endOpacity(255)
, _alongVector(Point(0, -1))
@ -640,9 +641,11 @@ LayerGradient::LayerGradient()
{
}
LayerGradient::~LayerGradient() {
LayerGradient::~LayerGradient()
{
}
LayerGradient* LayerGradient::create(const Color4B& start, const Color4B& end)
{
LayerGradient * layer = new LayerGradient();