diff --git a/platform/default/src/mbgl/storage/pmtiles_file_source.cpp b/platform/default/src/mbgl/storage/pmtiles_file_source.cpp index 676f01212b8..c661c01346a 100644 --- a/platform/default/src/mbgl/storage/pmtiles_file_source.cpp +++ b/platform/default/src/mbgl/storage/pmtiles_file_source.cpp @@ -135,7 +135,7 @@ class PMTilesFileSource::Impl { tileResource.dataRange = std::make_pair(tileAddress.first, tileAddress.first + tileAddress.second - 1); - tasks[req] = getFileSource()->request(tileResource, [=, this](const Response& tileResponse) { + tasks[req] = getFileSource()->request(tileResource, [=](const Response& tileResponse) { Response response; response.noContent = true; @@ -335,7 +335,7 @@ class PMTilesFileSource::Impl { resource.dataRange = std::make_pair(header.json_metadata_offset, header.json_metadata_offset + header.json_metadata_bytes - 1); - tasks[req] = getFileSource()->request(resource, [=, this](const Response& responseMetadata) { + tasks[req] = getFileSource()->request(resource, [=](const Response& responseMetadata) { if (responseMetadata.error) { callback(std::make_unique( responseMetadata.error->reason,