Example #1
0
StopGrid* StopGrid::create()
{
    StopGrid* pAction = new (std::nothrow) StopGrid();
    pAction->autorelease();

    return pAction;
}
Example #2
0
StopGrid* StopGrid::create()
{
    StopGrid* pAction = new StopGrid();
    pAction->autorelease();

    return pAction;
}
StopGrid* StopGrid::create()
{
    StopGrid* action = new (std::nothrow) StopGrid();
    if (action)
    {
        action->autorelease();
        return action;
    }

    delete action;
    return nullptr;
}