Skip to content

Commit

Permalink
Code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tdcosta100 committed Sep 30, 2024
1 parent 271c370 commit 6888722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/default/src/mbgl/storage/pmtiles_file_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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<Response::Error>(
responseMetadata.error->reason,
Expand Down

0 comments on commit 6888722

Please sign in to comment.