mirror of https://github.com/axmolengine/axmol.git
issue #4058: Template fix. Object -> Ref
This commit is contained in:
parent
8fcf172235
commit
004a846847
|
@ -76,7 +76,7 @@ bool HelloWorld::init()
|
|||
}
|
||||
|
||||
|
||||
void HelloWorld::menuCloseCallback(Object* pSender)
|
||||
void HelloWorld::menuCloseCallback(Ref* pSender)
|
||||
{
|
||||
Director::getInstance()->end();
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ public:
|
|||
virtual bool init();
|
||||
|
||||
// a selector callback
|
||||
void menuCloseCallback(Object* pSender);
|
||||
void menuCloseCallback(cocos2d::Ref* pSender);
|
||||
|
||||
// implement the "static create()" method manually
|
||||
CREATE_FUNC(HelloWorld);
|
||||
|
|
|
@ -236,7 +236,7 @@ void reloadScript()
|
|||
|
||||
}
|
||||
|
||||
class ConnectWaiter: public Object
|
||||
class ConnectWaiter: public Ref
|
||||
{
|
||||
public:
|
||||
static ConnectWaiter& getInstance()
|
||||
|
|
Loading…
Reference in New Issue