mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
msgpack: take const reference in unpack
This commit is contained in:
1 parent
2d358adf0e
commit
fea736428e
7 files changed
+13
-13
No files matched your search
+1
-1
@@ -246,7 +246,7 @@ std::time_t to_time_t(time_point t) {
|
||||
}
|
||||
|
||||
Blob
|
||||
unpackBlob(msgpack::object& o) {
|
||||
unpackBlob(const msgpack::object& o) {
|
||||
switch (o.type) {
|
||||
case msgpack::type::BIN:
|
||||
return {o.via.bin.ptr, o.via.bin.ptr+o.via.bin.size};
|
||||
|
||||
Reference in new issue
Block a user