History

fix implicit this

RTUnreal committed 1 year ago

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

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

Unified · Split

libraries/networking/src/BaseAssetScriptingInterface.cpp+4−4
@@ -96,7 +96,7 @@ Promise BaseAssetScriptingInterface::loadFromCache(const QUrl& url, bool decompr · 95 unmodified lines
9696 downloaded->fail(fetched);
9797
9898 if (decompress) {
99− downloaded->then([=](QVariantMap result) {
99+ downloaded->then([=, this](QVariantMap result) {
100100 fetched->mixin(result);
101101 Promise decompressed = decompressBytes(result.value("data").toByteArray());
102102 decompressed->mixin(result);
@@ -107,7 +107,7 @@ Promise BaseAssetScriptingInterface::loadFromCache(const QUrl& url, bool decompr · 4 unmodified lines
107107 }
108108
109109 fetched->fail(completed);
110− fetched->then([=](QVariantMap result) {
110+ fetched->then([=, this](QVariantMap result) {
111111 Promise converted = convertBytes(result.value("data").toByteArray(), responseType);
112112 converted->mixin(result);
113113 converted->ready(completed);
@@ -140,7 +140,7 @@ Promise BaseAssetScriptingInterface::loadAsset(QString asset, bool decompress, Q · 26 unmodified lines
140140 downloaded->fail(fetched);
141141
142142 if (decompress) {
143− downloaded->then([=](QVariantMap result) {
143+ downloaded->then([=, this](QVariantMap result) {
144144 Q_ASSERT(thread() == QThread::currentThread());
145145 fetched->mixin(result);
146146 Promise decompressed = decompressBytes(result.value("data").toByteArray());
@@ -152,7 +152,7 @@ Promise BaseAssetScriptingInterface::loadAsset(QString asset, bool decompress, Q · 5 unmodified lines
152152 }
153153
154154 fetched->fail(completed);
155− fetched->then([=](QVariantMap result) {
155+ fetched->then([=, this](QVariantMap result) {
156156 Promise converted = convertBytes(result.value("data").toByteArray(), responseType);
157157 converted->mixin(result);
158158 converted->ready(completed);