| 19 | #include "SongObject.h" |
| 20 | |
| 21 | SongObject* 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 | |
| 35 | bool SongObject::init(int id) |
| 36 | { |