diff options
| author | Nils Maier <maierman@web.de> | 2014-05-28 03:41:09 +0200 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2014-05-29 19:38:34 +0200 |
| commit | b9fe4119c0f7165669e87cb1423efb030eb96c4d (patch) | |
| tree | be711120896da0db842537c0bf2a0b864c0182ec /src/RequestSlot.h | |
| parent | c8ccb434288dff750ff7a8d22d0551043b1eb1e5 (diff) | |
New round of clang-modernize
Diffstat (limited to 'src/RequestSlot.h')
| -rw-r--r-- | src/RequestSlot.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RequestSlot.h b/src/RequestSlot.h index 2208d26f..e89d9480 100644 --- a/src/RequestSlot.h +++ b/src/RequestSlot.h @@ -45,10 +45,10 @@ namespace aria2 { class RequestSlot { public: RequestSlot(size_t index, int32_t begin, int32_t length, size_t blockIndex, - const std::shared_ptr<Piece>& piece = nullptr) + std::shared_ptr<Piece> piece = nullptr) : dispatchedTime_(global::wallclock()), index_(index), begin_(begin), length_(length), blockIndex_(blockIndex), - piece_(piece) + piece_(std::move(piece)) {} RequestSlot():dispatchedTime_(0), index_(0), begin_(0), length_(0), |
