summaryrefslogtreecommitdiff
path: root/platform/default/src/mbgl/map/map_snapshotter.cpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-05-10 11:10:23 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-05-10 11:59:02 +0300
commitb41f39d545908dfb9a348aa786620d745d929225 (patch)
treee31ccda473bec9d5a8866afe86fd64fd750cc0e5 /platform/default/src/mbgl/map/map_snapshotter.cpp
parent9fb41a74bcfefefbf79a9bf4090c0e4e90c0e08a (diff)
downloadqtlocation-mapboxgl-b41f39d545908dfb9a348aa786620d745d929225.tar.gz
[core] Make ActorRef methods const
So that the lambdas calling these methods do not have to be mutable.
Diffstat (limited to 'platform/default/src/mbgl/map/map_snapshotter.cpp')
-rw-r--r--platform/default/src/mbgl/map/map_snapshotter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/src/mbgl/map/map_snapshotter.cpp b/platform/default/src/mbgl/map/map_snapshotter.cpp
index dc3d263261..6e02ac8532 100644
--- a/platform/default/src/mbgl/map/map_snapshotter.cpp
+++ b/platform/default/src/mbgl/map/map_snapshotter.cpp
@@ -81,7 +81,7 @@ MapSnapshotter::Impl::Impl(std::shared_ptr<Scheduler> scheduler_,
}
void MapSnapshotter::Impl::snapshot(ActorRef<MapSnapshotter::Callback> callback) {
- map.renderStill([this, callback = std::move(callback)] (std::exception_ptr error) mutable {
+ map.renderStill([this, callback = std::move(callback)] (std::exception_ptr error) {
// Create lambda that captures the current transform state
// and can be used to translate for geographic to screen