MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / create

Method create

Source/SongObject.cpp:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include "SongObject.h"
20
21SongObject* SongObject::create(int id)
22{
23 auto pRet = new SongObject();
24
25 if (pRet && pRet->init(id))
26 {
27 pRet->autorelease();
28 return pRet;
29 }
30
31 AX_SAFE_DELETE(pRet);
32 return nullptr;
33}
34
35bool SongObject::init(int id)
36{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected