From d1d5ea5b21c1a94b09bbca807ccb0ef6162b6a85 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 4 Jun 2014 22:43:29 +0900 Subject: DownloadContext, FileEntry: Use move semantics to path parameter in ctor --- src/FileEntry.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/FileEntry.cc') diff --git a/src/FileEntry.cc b/src/FileEntry.cc index e500f67f..c12a9182 100644 --- a/src/FileEntry.cc +++ b/src/FileEntry.cc @@ -66,12 +66,12 @@ bool FileEntry::RequestFaster::operator() return lspd > rspd || (lspd == rspd && lhs.get() < rhs.get()); } -FileEntry::FileEntry(const std::string& path, int64_t length, int64_t offset, +FileEntry::FileEntry(std::string path, int64_t length, int64_t offset, const std::vector& uris) : length_(length), offset_(offset), uris_(uris.begin(), uris.end()), - path_(path), + path_(std::move(path)), lastFasterReplace_(0), maxConnectionPerServer_(1), requested_(true), -- cgit