mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +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(); }
|
const Stmt* Body() const { return s.get(); }
|
||||||
Stmt* Body() { 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;
|
void Describe(ODesc* d) const override;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue