From 857243ac218e0ce6cd8a287bd61e62975c0a142f Mon Sep 17 00:00:00 2001 From: halx99 Date: Wed, 1 Sep 2021 11:13:17 +0800 Subject: [PATCH] Make override function default parameter same with parent --- cocos/2d/CCSprite.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/2d/CCSprite.h b/cocos/2d/CCSprite.h index ab516343bf..6314d6f329 100644 --- a/cocos/2d/CCSprite.h +++ b/cocos/2d/CCSprite.h @@ -363,7 +363,7 @@ public: virtual void setRotationSkewY(float rotationY) override; virtual void setSkewX(float sx) override; virtual void setSkewY(float sy) override; - virtual void removeChild(Node* child, bool cleanup) override; + virtual void removeChild(Node* child, bool cleanup = true) override; virtual void removeAllChildrenWithCleanup(bool cleanup) override; virtual void reorderChild(Node *child, int zOrder) override; using Node::addChild;