Use std::move() in Case::UpdateBody()

This commit is contained in:
Jon Siwek 2021-01-13 22:58:39 -08:00
parent 177b723a60
commit 817315d68e

View file

@ -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;