diff --git a/template/multi-platform-cpp/Classes/HelloWorldScene.cpp b/template/multi-platform-cpp/Classes/HelloWorldScene.cpp index 9c6f231620..2b28e35550 100644 --- a/template/multi-platform-cpp/Classes/HelloWorldScene.cpp +++ b/template/multi-platform-cpp/Classes/HelloWorldScene.cpp @@ -76,7 +76,7 @@ bool HelloWorld::init() } -void HelloWorld::menuCloseCallback(Object* pSender) +void HelloWorld::menuCloseCallback(Ref* pSender) { Director::getInstance()->end(); diff --git a/template/multi-platform-cpp/Classes/HelloWorldScene.h b/template/multi-platform-cpp/Classes/HelloWorldScene.h index 79ce38afea..02cacbed5f 100644 --- a/template/multi-platform-cpp/Classes/HelloWorldScene.h +++ b/template/multi-platform-cpp/Classes/HelloWorldScene.h @@ -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); diff --git a/template/multi-platform-js-runtime/framework/Classes/Runtime.cpp b/template/multi-platform-js-runtime/framework/Classes/Runtime.cpp index 57cc1673c4..0bc4b5e553 100644 --- a/template/multi-platform-js-runtime/framework/Classes/Runtime.cpp +++ b/template/multi-platform-js-runtime/framework/Classes/Runtime.cpp @@ -236,7 +236,7 @@ void reloadScript() } -class ConnectWaiter: public Object +class ConnectWaiter: public Ref { public: static ConnectWaiter& getInstance()