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/msg.h | |
parent | b6cc8b6615266fa1023b63d08e96971629d854c6 (diff) |
remove unnecessary std::move()v0.1.0
Diffstat (limited to 'include/salticidae/msg.h')
-rw-r--r-- | include/salticidae/msg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/salticidae/msg.h b/include/salticidae/msg.h index 670d942..a81a5ae 100644 --- a/include/salticidae/msg.h +++ b/include/salticidae/msg.h @@ -172,7 +172,7 @@ class MsgBase { throw std::runtime_error("payload not available"); no_payload = true; #endif - return std::move(payload); + return DataStream(std::move(payload)); } void set_payload(DataStream &&s) { @@ -203,7 +203,7 @@ class MsgBase { << "checksum=" << get_hex(checksum) << " " #endif << "payload=" << get_hex(payload) << ">"; - return std::move(s); + return std::string(std::move(s)); } #ifndef SALTICIDAE_NOCHECKSUM @@ -239,7 +239,7 @@ class MsgBase { << htole(checksum) #endif << payload; - return std::move(s); + return bytearray_t(std::move(s)); } void gen_hash_list(DataStream &s, |