| 73 | } |
| 74 | |
| 75 | Menu* Menu::createWithArray(const Vector<MenuItem*>& arrayOfItems) |
| 76 | { |
| 77 | auto ret = new Menu(); |
| 78 | if (ret->initWithArray(arrayOfItems)) |
| 79 | { |
| 80 | ret->autorelease(); |
| 81 | } |
| 82 | else |
| 83 | { |
| 84 | AX_SAFE_DELETE(ret); |
| 85 | } |
| 86 | |
| 87 | return ret; |
| 88 | } |
| 89 | |
| 90 | Menu* Menu::createWithItems(MenuItem* item, va_list args) |
| 91 | { |
nothing calls this directly
no test coverage detected