File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -559,11 +559,11 @@ protected:
559559public:
560560 static MyCustomSettingNodeV3* create(std::shared_ptr<MyCustomSettingV3 > setting, float width) {
561561 auto ret = new MyCustomSettingNodeV3();
562- if (ret && ret ->init(setting, width)) {
562+ if (ret->init(setting, width)) {
563563 ret->autorelease();
564564 return ret;
565565 }
566- CC_SAFE_DELETE( ret) ;
566+ delete ret;
567567 return nullptr;
568568 }
569569};
@@ -746,11 +746,11 @@ protected:
746746public:
747747 static MyButtonSettingNodeV3* create(std::shared_ptr<MyButtonSettingV3 > setting, float width) {
748748 auto ret = new MyButtonSettingNodeV3();
749- if (ret && ret ->init(setting, width)) {
749+ if (ret->init(setting, width)) {
750750 ret->autorelease();
751751 return ret;
752752 }
753- CC_SAFE_DELETE( ret) ;
753+ delete ret;
754754 return nullptr;
755755 }
756756
You can’t perform that action at this time.
0 commit comments