mirror of https://github.com/axmolengine/axmol.git
fixing some warning messages of code not conform C++20 yet (#1113)
* fixing some warning messages of code not conform C++20 yet * trying to compile in C+17 because UWP
This commit is contained in:
parent
09d86de9e7
commit
4608ecf8de
|
@ -202,7 +202,7 @@ void TriggerObj::serialize(const rapidjson::Value& val)
|
|||
sprintf(buf, "%d", event);
|
||||
std::string custom_event_name(buf);
|
||||
|
||||
EventListenerCustom* listener = EventListenerCustom::create(custom_event_name, [=](EventCustom* /*evt*/) {
|
||||
EventListenerCustom* listener = EventListenerCustom::create(custom_event_name, [this](EventCustom* /*evt*/) {
|
||||
if (detect())
|
||||
{
|
||||
done();
|
||||
|
@ -295,7 +295,7 @@ void TriggerObj::serialize(cocostudio::CocoLoader* pCocoLoader, cocostudio::stEx
|
|||
std::string custom_event_name(buf);
|
||||
|
||||
EventListenerCustom* listener =
|
||||
EventListenerCustom::create(custom_event_name, [=](EventCustom* /*evt*/) {
|
||||
EventListenerCustom::create(custom_event_name, [this](EventCustom* /*evt*/) {
|
||||
if (detect())
|
||||
{
|
||||
done();
|
||||
|
|
Loading…
Reference in New Issue