summaryrefslogtreecommitdiff
path: root/src/FileEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-06-04 22:43:29 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-06-04 22:43:29 +0900
commitd1d5ea5b21c1a94b09bbca807ccb0ef6162b6a85 (patch)
treecfe233e5192b5ad6ef08b39c3dbe92c842393fc5 /src/FileEntry.cc
parent9b54272190a333f83fb6c7f66875341627e21a70 (diff)
DownloadContext, FileEntry: Use move semantics to path parameter in ctor
Diffstat (limited to 'src/FileEntry.cc')
-rw-r--r--src/FileEntry.cc4
1 files changed, 2 insertions, 2 deletions
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<std::string>& uris)
: length_(length),
offset_(offset),
uris_(uris.begin(), uris.end()),
- path_(path),
+ path_(std::move(path)),
lastFasterReplace_(0),
maxConnectionPerServer_(1),
requested_(true),