mirror of https://github.com/axmolengine/axmol.git
CC_CALLBACK_2 not std::bind directly
This commit is contained in:
parent
5cc483276b
commit
42c374157d
|
@ -124,7 +124,7 @@ void SIOClientImpl::handshake()
|
|||
request->setUrl(pre.str().c_str());
|
||||
request->setRequestType(HttpRequest::Type::GET);
|
||||
|
||||
request->setResponseCallback(std::bind(&SIOClientImpl::handshakeResponse, this, std::placeholders::_1, std::placeholders::_2));
|
||||
request->setResponseCallback(CC_CALLBACK_2(SIOClientImpl::handshakeResponse, this));
|
||||
request->setTag("handshake");
|
||||
|
||||
log("SIOClientImpl::handshake() waiting");
|
||||
|
|
Loading…
Reference in New Issue