mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Stmt/Assert: Use std::move() for backtrace element
This commit is contained in:
parent
e22b1f85aa
commit
8550c691bd
1 changed files with 1 additions and 1 deletions
|
@ -1925,7 +1925,7 @@ ValPtr AssertStmt::Exec(Frame* f, StmtFlowType& flow)
|
|||
bt = get_current_script_backtrace();
|
||||
auto assert_elem = make_backtrace_element("assert", MakeEmptyCallArgumentVector(),
|
||||
GetLocationInfo());
|
||||
bt->Insert(0, assert_elem);
|
||||
bt->Insert(0, std::move(assert_elem));
|
||||
}
|
||||
|
||||
// Breaking from either the assertion_failure() or assertion_result()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue