Repeat *Repeat::create(FiniteTimeAction *action, unsigned int times) { Repeat *repeat = new(std::nothrow) Repeat(); repeat->initWithAction(action, times); return repeat; }
Repeat* Repeat::create(FiniteTimeAction *pAction, unsigned int times) { Repeat* pRepeat = new Repeat(); pRepeat->initWithAction(pAction, times); pRepeat->autorelease(); return pRepeat; }