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:
Joilnen 2023-03-13 10:35:42 -03:00 committed by GitHub
parent 09d86de9e7
commit 4608ecf8de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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();