Skip to content

Commit d56f647

Browse files
committed
make clang 3.7 happy, shorter, simpler too
Summary: Fixes facebook#97 make clang 3.7 happy, shorter, simpler too Reviewed By: uddipta Differential Revision: D2553825 fb-gh-sync-id: ef295974009f3f051967bad300a0dc8bfb12ff00
1 parent db4ca6b commit d56f647

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Sender.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ ErrorCode Sender::start() {
330330
<< ports_ << "]";
331331
startTime_ = Clock::now();
332332
downloadResumptionEnabled_ = options.enable_download_resumption;
333-
dirThread_ = std::move(dirQueue_->buildQueueAsynchronously());
333+
dirThread_ = dirQueue_->buildQueueAsynchronously();
334334
if (twoPhases) {
335335
dirThread_.join();
336336
}

TransferLogManager.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ void TransferLogManager::openLog() {
252252
}
253253
if (!options.resume_using_dir_tree) {
254254
// start writer thread
255-
writerThread_ =
256-
std::move(std::thread(&TransferLogManager::writeEntriesToDisk, this));
255+
writerThread_ = std::thread(&TransferLogManager::writeEntriesToDisk, this);
257256
LOG(INFO) << "Log writer thread started";
258257
}
259258
}

0 commit comments

Comments
 (0)