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
1562 using LocalScriptStatusRequest = QFutureWatcher<QVariant>;1562 using LocalScriptStatusRequest = QFutureWatcher<QVariant>;
1563 1563
1564 LocalScriptStatusRequest* request = new LocalScriptStatusRequest;1564 LocalScriptStatusRequest* request = new LocalScriptStatusRequest;
1565 QObject::connect(request, &LocalScriptStatusRequest::finished, _scriptManager, [=]() mutable {1565 QObject::connect(request, &LocalScriptStatusRequest::finished, _scriptManager, [=, this]() mutable {
1566 auto details = request->result().toMap();1566 auto details = request->result().toMap();
1567 ScriptValue err, result;1567 ScriptValue err, result;
1568 if (details.contains("isError")) {1568 if (details.contains("isError")) {
@@ -1598,7 +1598,7 @@ bool EntityPropertyMetadataRequest::serverScripts(EntityItemID entityID, const S · 29 unmodified lines
1598 auto client = DependencyManager::get<EntityScriptClient>();1598 auto client = DependencyManager::get<EntityScriptClient>();
1599 auto request = client->createScriptStatusRequest(entityID);1599 auto request = client->createScriptStatusRequest(entityID);
1600 QPointer<ScriptManager> manager = _scriptManager;1600 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 {
1602 auto manager = _scriptManager;1602 auto manager = _scriptManager;
1603 if (!manager) {1603 if (!manager) {
1604 qCDebug(entities) << __FUNCTION__ << " -- engine destroyed while inflight" << entityID;1604 qCDebug(entities) << __FUNCTION__ << " -- engine destroyed while inflight" << entityID;