summaryrefslogtreecommitdiff
path: root/platform/default/src/mbgl/storage/asset_file_source.cpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-20 12:38:09 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-23 12:09:09 +0200
commitd15b9c1f9c1afa29175ba2e398adc680e66147e6 (patch)
tree6bf426ae77d7386a6bbdee30444974bbc5dd76d0 /platform/default/src/mbgl/storage/asset_file_source.cpp
parent37802eec36aae3cb84c7f73a48652d9959489243 (diff)
downloadqtlocation-mapboxgl-d15b9c1f9c1afa29175ba2e398adc680e66147e6.tar.gz
[core] Fix performance-unnecessary-value-param errors
As reported by clang-tidy-8.
Diffstat (limited to 'platform/default/src/mbgl/storage/asset_file_source.cpp')
-rw-r--r--platform/default/src/mbgl/storage/asset_file_source.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/platform/default/src/mbgl/storage/asset_file_source.cpp b/platform/default/src/mbgl/storage/asset_file_source.cpp
index a9ede06508..278411026e 100644
--- a/platform/default/src/mbgl/storage/asset_file_source.cpp
+++ b/platform/default/src/mbgl/storage/asset_file_source.cpp
@@ -19,11 +19,9 @@ namespace mbgl {
class AssetFileSource::Impl {
public:
- Impl(ActorRef<Impl>, std::string root_)
- : root(std::move(root_)) {
- }
+ Impl(const ActorRef<Impl>&, std::string root_) : root(std::move(root_)) {}
- void request(const std::string& url, ActorRef<FileSourceRequest> req) {
+ void request(const std::string& url, const ActorRef<FileSourceRequest>& req) {
if (!acceptsURL(url)) {
Response response;
response.error = std::make_unique<Response::Error>(Response::Error::Reason::Other,
@@ -35,7 +33,7 @@ public:
// Cut off the protocol and prefix with path.
const auto path =
root + "/" + mbgl::util::percentDecode(url.substr(std::char_traits<char>::length(util::ASSET_PROTOCOL)));
- requestLocalFile(path, std::move(req));
+ requestLocalFile(path, req);
}
private: