mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
Tweak vector append/move logic of Frame::SerializeCopyFrame()
No functional difference, just simplification.
This commit is contained in:
parent
b08112b2e7
commit
0a7e5e67a2
1 changed files with 2 additions and 3 deletions
|
@ -409,11 +409,10 @@ broker::expected<broker::data> Frame::SerializeCopyFrame()
|
|||
TypeTag tag = val->GetType()->Tag();
|
||||
broker::vector val_tuple {std::move(*expected),
|
||||
static_cast<broker::integer>(tag)};
|
||||
body.emplace_back(broker::none());
|
||||
body[i] = val_tuple;
|
||||
body.emplace_back(std::move(val_tuple));
|
||||
}
|
||||
|
||||
rval.emplace_back(body);
|
||||
rval.emplace_back(std::move(body));
|
||||
|
||||
return {std::move(rval)};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue