Пример #1
0
    CCVirtualCategory *CCVirtualCategory::create(__String *name, __Array *goodItemIds) {
        CCVirtualCategory *ret = new CCVirtualCategory();
        if (ret->init(name, goodItemIds)) {
            ret->autorelease();
        }
        else {
            CC_SAFE_DELETE(ret);
        }

        return ret;
    }
 CCVirtualCategory *CCVirtualCategory::create(CCString *name, CCArray *goodItemIds) {
     CCVirtualCategory *ret = new CCVirtualCategory();
     ret->autorelease();
     ret->init(name, goodItemIds);
     return ret;
 }