aboutsummaryrefslogtreecommitdiff
path: root/include/salticidae/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/salticidae/stream.h')
-rw-r--r--include/salticidae/stream.h6
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;
}