mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add some uses of std::move in constructors and simple functions for pass-by-value arguments
This commit is contained in:
parent
1e33467844
commit
ef5b169acd
9 changed files with 15 additions and 14 deletions
|
@ -74,7 +74,7 @@ public:
|
|||
*/
|
||||
Packet(int link_type, pkt_timeval* ts, uint32_t caplen, uint32_t len, const u_char* data, bool copy = false,
|
||||
std::string tag = "") {
|
||||
Init(link_type, ts, caplen, len, data, copy, tag);
|
||||
Init(link_type, ts, caplen, len, data, copy, std::move(tag));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue