[tidy/linux] modernize-pass-by-value

This commit is contained in:
Bruno de Oliveira Abinader
2016-06-14 16:20:50 +03:00
parent f0e48ca327
commit 12acd29664
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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_)) {
}