mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Use std::move() in Case::UpdateBody()
This commit is contained in:
parent
177b723a60
commit
817315d68e
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ public:
|
|||
const Stmt* Body() const { return s.get(); }
|
||||
Stmt* Body() { return s.get(); }
|
||||
|
||||
void UpdateBody(StmtPtr new_body) { s = new_body; }
|
||||
void UpdateBody(StmtPtr new_body) { s = std::move(new_body); }
|
||||
|
||||
void Describe(ODesc* d) const override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue