FlipY * FlipY::create(bool y) { FlipY *ret = new (std::nothrow) FlipY(); if (ret && ret->initWithFlipY(y)) { ret->autorelease(); return ret; } CC_SAFE_DELETE(ret); return nullptr; }
FlipY * FlipY::create(bool y) { FlipY *pRet = new FlipY(); if (pRet && pRet->initWithFlipY(y)) { pRet->autorelease(); return pRet; } CC_SAFE_DELETE(pRet); return NULL; }