mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Use std::move in a few places instead of copying a pass-by-value argument (performance-unnecessary-value-param)
This commit is contained in:
parent
5a237d3a3f
commit
d23b15c08f
4 changed files with 4 additions and 4 deletions
|
@ -255,7 +255,7 @@ public:
|
|||
using IPPair = std::pair<IPAddr, IPAddr>;
|
||||
|
||||
FlowWeirdTimer(double t, IPPair p, double timeout)
|
||||
: Timer(t + timeout, TIMER_FLOW_WEIRD_EXPIRE), endpoints(p)
|
||||
: Timer(t + timeout, TIMER_FLOW_WEIRD_EXPIRE), endpoints(std::move(p))
|
||||
{}
|
||||
|
||||
void Dispatch(double t, int is_expire) override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue