mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Adjust reference/move nitpicks in use-def/reduce code
Use std::move() and avoid superfluous copies by assigning to const-reference in a few places.
This commit is contained in:
parent
8d452f58fc
commit
b450b90a3e
3 changed files with 5 additions and 5 deletions
|
@ -95,7 +95,7 @@ private:
|
|||
UDs PropagateUDs(const StmtPtr& s, UDs succ_UDs,
|
||||
const StmtPtr& succ_stmt, bool second_pass)
|
||||
{
|
||||
return PropagateUDs(s.get(), succ_UDs, succ_stmt.get(),
|
||||
return PropagateUDs(s.get(), std::move(succ_UDs), succ_stmt.get(),
|
||||
second_pass);
|
||||
}
|
||||
UDs PropagateUDs(const Stmt* s, UDs succ_UDs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue