3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-26 22:17:54 +00:00

remove unneeded constructors (last round)

This commit is contained in:
Nuno Lopes 2020-07-12 17:41:57 +01:00
parent 44ec259c4c
commit bb26f219fe
37 changed files with 65 additions and 276 deletions

View file

@ -83,11 +83,13 @@ public:
return *this;
}
obj_ref & operator=(obj_ref & n) {
obj_ref & operator=(const obj_ref & n) {
SASSERT(&m_manager == &n.m_manager);
n.inc_ref();
dec_ref();
m_obj = n.m_obj;
if (m_obj != n.m_obj) {
dec_ref();
m_obj = n.m_obj;
inc_ref();
}
return *this;
}