From b41f39d545908dfb9a348aa786620d745d929225 Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Fri, 10 May 2019 11:10:23 +0300 Subject: [core] Make ActorRef methods const So that the lambdas calling these methods do not have to be mutable. --- platform/default/src/mbgl/map/map_snapshotter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/default/src/mbgl/map/map_snapshotter.cpp') 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_, } void MapSnapshotter::Impl::snapshot(ActorRef 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 -- cgit v1.2.1