mirror of
https://github.com/Z3Prover/z3
synced 2026-02-22 16:27:37 +00:00
Eliminate unnecessary copies with std::move for ref-counted types (#8591)
This commit is contained in:
parent
61d8547a25
commit
d9c6da215f
9 changed files with 12 additions and 14 deletions
|
|
@ -81,7 +81,7 @@ namespace smt {
|
|||
app * eq = m.mk_eq(arg1, arg2);
|
||||
app_ref neq(m.mk_not(eq), m);
|
||||
if (std::find(lits.begin(), lits.end(), neq.get()) == lits.end()) {
|
||||
lits.push_back(neq);
|
||||
lits.push_back(std::move(neq));
|
||||
prs.push_back(mk_hypothesis(m, eq, false, arg1, arg2));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue