diff options
Diffstat (limited to 'src/mbgl/tile/raster_tile_worker.cpp')
-rw-r--r-- | src/mbgl/tile/raster_tile_worker.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mbgl/tile/raster_tile_worker.cpp b/src/mbgl/tile/raster_tile_worker.cpp index 4afa876429..2a4cfeaf31 100644 --- a/src/mbgl/tile/raster_tile_worker.cpp +++ b/src/mbgl/tile/raster_tile_worker.cpp @@ -6,11 +6,10 @@ namespace mbgl { -RasterTileWorker::RasterTileWorker(ActorRef<RasterTileWorker>, ActorRef<RasterTile> parent_) - : parent(std::move(parent_)) { -} +RasterTileWorker::RasterTileWorker(const ActorRef<RasterTileWorker>&, ActorRef<RasterTile> parent_) + : parent(std::move(parent_)) {} -void RasterTileWorker::parse(std::shared_ptr<const std::string> data, uint64_t correlationID) { +void RasterTileWorker::parse(const std::shared_ptr<const std::string>& data, uint64_t correlationID) { if (!data) { parent.invoke(&RasterTile::onParsed, nullptr, correlationID); // No data; empty tile. return; |