mirror of
https://github.com/Z3Prover/z3
synced 2025-07-26 22:17:54 +00:00
simplifications to refs
This commit is contained in:
parent
8e4ef19f45
commit
edf0df634d
5 changed files with 14 additions and 14 deletions
|
@ -94,10 +94,8 @@ public:
|
|||
|
||||
obj_ref & operator=(obj_ref && n) {
|
||||
SASSERT(&m_manager == &n.m_manager);
|
||||
if (this != &n) {
|
||||
std::swap(m_obj, n.m_obj);
|
||||
n.reset();
|
||||
}
|
||||
std::swap(m_obj, n.m_obj);
|
||||
n.reset();
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue