[tidy/linux] modernize-pass-by-value
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -64,7 +64,7 @@ GeoJSONSource::GeoJSONSource(std::string id_,
|
||||
std::string url_,
|
||||
std::unique_ptr<mapbox::geojsonvt::GeoJSONVT>&& geojsonvt_)
|
||||
: Source(SourceType::GeoJSON, std::move(id_)),
|
||||
url(url_),
|
||||
url(std::move(url_)),
|
||||
geojsonvt(std::move(geojsonvt_)) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user