From 72a488165e03510d4edcbc1c408be1becfa6c540 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 5 Jul 2018 14:48:46 -0400 Subject: ... --- include/salticidae/stream.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/salticidae/stream.h b/include/salticidae/stream.h index 4259773..8824f97 100644 --- a/include/salticidae/stream.h +++ b/include/salticidae/stream.h @@ -44,8 +44,8 @@ class DataStream { DataStream(const bytearray_t &data): buffer(data), offset(0) {} DataStream(DataStream &&other): - buffer(std::move(other.buffer)), - offset(other.offset) {} + buffer(std::move(other.buffer)), + offset(other.offset) {} DataStream(const DataStream &other): buffer(other.buffer), @@ -59,7 +59,7 @@ class DataStream { DataStream &operator=(DataStream &&other) { buffer = std::move(other.buffer); - offset = std::move(other.offset); + offset = other.offset; return *this; } -- cgit v1.2.3