diff options
author | Determinant <[email protected]> | 2018-07-05 14:48:46 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-07-05 14:48:46 -0400 |
commit | 72a488165e03510d4edcbc1c408be1becfa6c540 (patch) | |
tree | 60613c9ef5ec3424eca8ff8207773775b673275f /include | |
parent | 9e8165449b8c1c81162ee5fb30a83753df3a4183 (diff) |
...
Diffstat (limited to 'include')
-rw-r--r-- | include/salticidae/stream.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |