Ejemplo n.º 1
0
DecorativeDisplay *DecorativeDisplay::create()
{
	DecorativeDisplay *pDisplay = new DecorativeDisplay();
	if (pDisplay && pDisplay->init()){
		pDisplay->autorelease();
		return pDisplay;
	}
	CC_SAFE_DELETE(pDisplay);
	return NULL;
}
Ejemplo n.º 2
0
DecorativeDisplay *DecorativeDisplay::create()
{
    DecorativeDisplay *pDisplay = new (std::nothrow) DecorativeDisplay();
    if (pDisplay && pDisplay->init())
    {
        pDisplay->autorelease();
        return pDisplay;
    }
    CC_SAFE_DELETE(pDisplay);
    return nullptr;
}