MCPcopy Create free account
hub / github.com/axmolengine/axmol / createWithArray

Method createWithArray

core/2d/Menu.cpp:75–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75Menu* 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
90Menu* Menu::createWithItems(MenuItem* item, va_list args)
91{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initWithArrayMethod · 0.45

Tested by

no test coverage detected