mirror of
https://github.com/Z3Prover/z3
synced 2025-07-26 22:17:54 +00:00
Use nullptr.
This commit is contained in:
parent
f01328c65f
commit
76eb7b9ede
625 changed files with 4639 additions and 4639 deletions
|
@ -43,7 +43,7 @@ public:
|
|||
}
|
||||
|
||||
explicit obj_ref(TManager & m):
|
||||
m_obj(0),
|
||||
m_obj(nullptr),
|
||||
m_manager(m) {
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ public:
|
|||
inc_ref();
|
||||
}
|
||||
|
||||
obj_ref(obj_ref && other) : m_obj(0), m_manager(other.m_manager) {
|
||||
obj_ref(obj_ref && other) : m_obj(nullptr), m_manager(other.m_manager) {
|
||||
std::swap(m_obj, other.m_obj);
|
||||
}
|
||||
|
||||
|
@ -67,9 +67,9 @@ public:
|
|||
|
||||
T * get() const { return m_obj; }
|
||||
|
||||
operator bool() const { return m_obj != 0; }
|
||||
operator bool() const { return m_obj != nullptr; }
|
||||
|
||||
bool operator!() const { return m_obj == 0; }
|
||||
bool operator!() const { return m_obj == nullptr; }
|
||||
|
||||
operator T*() const { return m_obj; }
|
||||
|
||||
|
@ -94,7 +94,7 @@ public:
|
|||
|
||||
void reset() {
|
||||
dec_ref();
|
||||
m_obj = 0;
|
||||
m_obj = nullptr;
|
||||
}
|
||||
|
||||
void swap(obj_ref & n) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue