diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-14 16:20:50 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-14 22:38:40 +0300 |
commit | 12acd2966488cd96bd9c0dd85359b90630d594d7 (patch) | |
tree | fc3133cf6e0e3ea70bad16120220de99b537f64a /platform/default | |
parent | f0e48ca3275cdb23559f7758ccfc42b60c286b72 (diff) | |
download | qtlocation-mapboxgl-12acd2966488cd96bd9c0dd85359b90630d594d7.tar.gz |
[tidy/linux] modernize-pass-by-value
Diffstat (limited to 'platform/default')
-rw-r--r-- | platform/default/http_file_source.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/default/http_file_source.cpp b/platform/default/http_file_source.cpp index b5d17c7618..17e06a6c0f 100644 --- a/platform/default/http_file_source.cpp +++ b/platform/default/http_file_source.cpp @@ -63,7 +63,7 @@ public: class HTTPRequest : public AsyncRequest { public: - HTTPRequest(HTTPFileSource::Impl*, const Resource&, FileSource::Callback); + HTTPRequest(HTTPFileSource::Impl*, Resource, FileSource::Callback); ~HTTPRequest() override; void handleResult(CURLcode code); @@ -219,10 +219,10 @@ int HTTPFileSource::Impl::startTimeout(CURLM * /* multi */, long timeout_ms, voi return 0; } -HTTPRequest::HTTPRequest(HTTPFileSource::Impl* context_, const Resource& resource_, FileSource::Callback callback_) +HTTPRequest::HTTPRequest(HTTPFileSource::Impl* context_, Resource resource_, FileSource::Callback callback_) : context(context_), - resource(resource_), - callback(callback_), + resource(std::move(resource_)), + callback(std::move(callback_)), handle(context->getHandle()) { // If there's already a response, set the correct etags/modified headers to make sure we are |