diff options
author | Determinant <tederminant@gmail.com> | 2019-10-14 13:36:58 -0400 |
---|---|---|
committer | Determinant <tederminant@gmail.com> | 2019-10-14 13:36:58 -0400 |
commit | 2a99baafdcac46931b00a9ef9e77340dbc319b58 (patch) | |
tree | 99bd05cd8985ee61e93332c626d40cb9ea5f1fb1 /include/salticidae/buffer.h | |
parent | b6cc8b6615266fa1023b63d08e96971629d854c6 (diff) |
remove unnecessary std::move()v0.1.0
Diffstat (limited to 'include/salticidae/buffer.h')
-rw-r--r-- | include/salticidae/buffer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/salticidae/buffer.h b/include/salticidae/buffer.h index 35d10b8..6d3f97a 100644 --- a/include/salticidae/buffer.h +++ b/include/salticidae/buffer.h @@ -87,7 +87,7 @@ class SegBuffer { auto res = std::move(buffer.front().data); buffer.pop_front(); _size -= res.size(); - return std::move(res); + return res; } bytearray_t pop(size_t len) { @@ -104,7 +104,7 @@ class SegBuffer { } buffer.erase(buffer.begin(), i); _size -= res.size(); - return std::move(res); + return res; } size_t size() const { return _size; } @@ -140,7 +140,7 @@ struct MPSCWriteBuffer { bytearray_t move_pop() { buffer_entry_t res; buffer.try_dequeue(res); - return std::move(res.data); + return res.data; } queue_t &get_queue() { return buffer; } |