History

fix implicit this

RTUnreal committed 1 year ago

Commit 86c5f2c1 parent 611faa942 files · +134 −135Browse files

Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 42 files). Show all

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+2−2
@@ -1562,7 +1562,7 @@ bool EntityPropertyMetadataRequest::script(EntityItemID entityID, const ScriptVa · 1561 unmodified lines
15621562 using LocalScriptStatusRequest = QFutureWatcher<QVariant>;
15631563
15641564 LocalScriptStatusRequest* request = new LocalScriptStatusRequest;
1565− QObject::connect(request, &LocalScriptStatusRequest::finished, _scriptManager, [=]() mutable {
1565+ QObject::connect(request, &LocalScriptStatusRequest::finished, _scriptManager, [=, this]() mutable {
15661566 auto details = request->result().toMap();
15671567 ScriptValue err, result;
15681568 if (details.contains("isError")) {
@@ -1598,7 +1598,7 @@ bool EntityPropertyMetadataRequest::serverScripts(EntityItemID entityID, const S · 29 unmodified lines
15981598 auto client = DependencyManager::get<EntityScriptClient>();
15991599 auto request = client->createScriptStatusRequest(entityID);
16001600 QPointer<ScriptManager> manager = _scriptManager;
1601− QObject::connect(request, &GetScriptStatusRequest::finished, _scriptManager, [=](GetScriptStatusRequest* request) mutable {
1601+ QObject::connect(request, &GetScriptStatusRequest::finished, _scriptManager, [=, this](GetScriptStatusRequest* request) mutable {
16021602 auto manager = _scriptManager;
16031603 if (!manager) {
16041604 qCDebug(entities) << __FUNCTION__ << " -- engine destroyed while inflight" << entityID;