msgpack: take const reference in unpack

This commit is contained in:
Adrien Béraud committed 2019-12-14 13:01:24 -05:00
1 parent 2d358adf0e
commit fea736428e
7 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -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};