summaryrefslogtreecommitdiff
path: root/platform/default/src/mbgl/storage/local_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/local_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/local_file_source.cpp')
-rw-r--r--platform/default/src/mbgl/storage/local_file_source.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/default/src/mbgl/storage/local_file_source.cpp b/platform/default/src/mbgl/storage/local_file_source.cpp
index 5009146c8e..b505303fc0 100644
--- a/platform/default/src/mbgl/storage/local_file_source.cpp
+++ b/platform/default/src/mbgl/storage/local_file_source.cpp
@@ -19,9 +19,9 @@ namespace mbgl {
class LocalFileSource::Impl {
public:
- Impl(ActorRef<Impl>) {}
+ Impl(const ActorRef<Impl>&) {}
- 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,
@@ -32,7 +32,7 @@ public:
// Cut off the protocol and prefix with path.
const auto path = mbgl::util::percentDecode(url.substr(std::char_traits<char>::length(util::FILE_PROTOCOL)));
- requestLocalFile(path, std::move(req));
+ requestLocalFile(path, req);
}
};