diff --git a/cocos/2d/CCActionInterval.h b/cocos/2d/CCActionInterval.h index b735a1fb3b..d112f04e1f 100644 --- a/cocos/2d/CCActionInterval.h +++ b/cocos/2d/CCActionInterval.h @@ -585,7 +585,7 @@ public: virtual JumpTo* clone() const override; virtual JumpTo* reverse(void) const override; -private: +CC_CONSTRUCTOR_ACCESS: JumpTo() {} virtual ~JumpTo() {} CC_DISALLOW_COPY_AND_ASSIGN(JumpTo); @@ -750,7 +750,7 @@ public: virtual ScaleBy* clone() const override; virtual ScaleBy* reverse(void) const override; -protected: +CC_CONSTRUCTOR_ACCESS: ScaleBy() {} virtual ~ScaleBy() {} @@ -842,7 +842,7 @@ public: void setReverseAction(FadeTo* ac); -protected: +CC_CONSTRUCTOR_ACCESS: FadeIn():_reverseAction(nullptr) {} virtual ~FadeIn() {} @@ -869,7 +869,7 @@ public: void setReverseAction(FadeTo* ac); -protected: +CC_CONSTRUCTOR_ACCESS: FadeOut():_reverseAction(nullptr) {} virtual ~FadeOut() {} private: @@ -961,7 +961,7 @@ public: virtual DelayTime* reverse() const override; virtual DelayTime* clone() const override; -protected: +CC_CONSTRUCTOR_ACCESS: DelayTime() {} virtual ~DelayTime() {}