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/storage/online_file_source.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/storage/online_file_source.cpp')
-rw-r--r-- | platform/default/src/mbgl/storage/online_file_source.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/src/mbgl/storage/online_file_source.cpp b/platform/default/src/mbgl/storage/online_file_source.cpp index 26c652f28f..4e19d48a15 100644 --- a/platform/default/src/mbgl/storage/online_file_source.cpp +++ b/platform/default/src/mbgl/storage/online_file_source.cpp @@ -79,7 +79,7 @@ public: // Request the ResourceTransform actor a new url and replace the resource url with the // transformed one before proceeding to schedule the request. resourceTransform->invoke(&ResourceTransform::transform, request->resource.kind, - std::move(request->resource.url), [ref = request->actor()](const std::string&& url) mutable { + std::move(request->resource.url), [ref = request->actor()](const std::string&& url) { ref.invoke(&OnlineFileRequest::setTransformedURL, std::move(url)); }); } else { |