mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
minor simplifications in using type names, and unordered sets rather than vectors
This commit is contained in:
parent
8f4b616d65
commit
e531b2a7ca
2 changed files with 7 additions and 14 deletions
|
@ -583,7 +583,7 @@ broker::expected<broker::data> Frame::SerializeIDList(const IDPList& in)
|
|||
}
|
||||
|
||||
broker::expected<broker::data>
|
||||
Frame::SerializeOffsetMap(const std::unordered_map<std::string, int>& in)
|
||||
Frame::SerializeOffsetMap(const OffsetMap& in)
|
||||
{
|
||||
broker::vector rval;
|
||||
|
||||
|
@ -638,7 +638,7 @@ Frame::UnserializeIDList(const broker::vector& data)
|
|||
std::pair<bool, std::unordered_map<std::string, int>>
|
||||
Frame::UnserializeOffsetMap(const broker::vector& data)
|
||||
{
|
||||
std::unordered_map<std::string, int> rval;
|
||||
OffsetMap rval;
|
||||
|
||||
for ( broker::vector::size_type i = 0; i < data.size(); i += 2 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue