diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-05-10 11:10:23 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-05-10 11:59:02 +0300 |
commit | b41f39d545908dfb9a348aa786620d745d929225 (patch) | |
tree | e31ccda473bec9d5a8866afe86fd64fd750cc0e5 /platform/default/src/mbgl/map/map_snapshotter.cpp | |
parent | 9fb41a74bcfefefbf79a9bf4090c0e4e90c0e08a (diff) | |
download | qtlocation-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.cpp | 2 |
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 |