Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2548)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jun 24, 2024
1 parent a24d684 commit 169dc06
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: check-yaml
args: [--allow-multiple-documents]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.6
rev: v18.1.7
hooks:
- id: clang-format
files: '.*\.(hpp|cpp|h)'
Expand Down
9 changes: 4 additions & 5 deletions platform/default/src/mbgl/storage/main_resource_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ class MainResourceLoaderThread {
if (res.kind == Resource::Kind::Tile) {
// onlineResponse.data will be null if data not modified
MBGL_TIMING_FINISH(watch,
" Action: "
<< "Requesting,"
<< " URL: " << res.url.c_str() << " Size: "
<< (response.data != nullptr ? response.data->size() : 0) << "B,"
<< " Time")
" Action: " << "Requesting,"
<< " URL: " << res.url.c_str() << " Size: "
<< (response.data != nullptr ? response.data->size() : 0) << "B,"
<< " Time")
}
callback(response);
});
Expand Down
16 changes: 8 additions & 8 deletions src/mbgl/tile/geometry_tile_worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,10 +466,10 @@ void GeometryTileWorker::parse() {
requestNewImages(imageDependencies);

MBGL_TIMING_FINISH(watch,
" Action: "
<< "Parsing,"
<< " SourceID: " << sourceID.c_str() << " Canonical: " << static_cast<int>(id.canonical.z)
<< "/" << id.canonical.x << "/" << id.canonical.y << " Time");
" Action: " << "Parsing,"
<< " SourceID: " << sourceID.c_str()
<< " Canonical: " << static_cast<int>(id.canonical.z) << "/" << id.canonical.x << "/"
<< id.canonical.y << " Time");
finalizeLayout();
}

Expand Down Expand Up @@ -522,10 +522,10 @@ void GeometryTileWorker::finalizeLayout() {
firstLoad = false;

MBGL_TIMING_FINISH(watch,
" Action: "
<< "SymbolLayout,"
<< " SourceID: " << sourceID.c_str() << " Canonical: " << static_cast<int>(id.canonical.z)
<< "/" << id.canonical.x << "/" << id.canonical.y << " Time");
" Action: " << "SymbolLayout,"
<< " SourceID: " << sourceID.c_str()
<< " Canonical: " << static_cast<int>(id.canonical.z) << "/" << id.canonical.x << "/"
<< id.canonical.y << " Time");

parent.invoke(&GeometryTile::onLayout,
std::make_shared<GeometryTile::LayoutResult>(
Expand Down

0 comments on commit 169dc06

Please sign in to comment.