mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 10:14:42 +00:00
Use nullptr.
This commit is contained in:
parent
f01328c65f
commit
76eb7b9ede
625 changed files with 4639 additions and 4639 deletions
|
@ -34,14 +34,14 @@ class optional {
|
|||
void destroy() {
|
||||
if (m_initialized == 1) {
|
||||
dealloc(m_obj);
|
||||
m_obj = 0;
|
||||
m_obj = nullptr;
|
||||
}
|
||||
m_initialized = 0;
|
||||
}
|
||||
|
||||
public:
|
||||
optional():
|
||||
m_obj(0), m_initialized(0) {}
|
||||
m_obj(nullptr), m_initialized(0) {}
|
||||
|
||||
explicit optional(const T & val) {
|
||||
construct(val);
|
||||
|
@ -128,7 +128,7 @@ class optional<T*> {
|
|||
|
||||
public:
|
||||
|
||||
optional():m_ptr(0) {}
|
||||
optional():m_ptr(nullptr) {}
|
||||
|
||||
explicit optional(T * val):m_ptr(val) {}
|
||||
|
||||
|
@ -140,7 +140,7 @@ public:
|
|||
|
||||
operator bool() const { return m_ptr != 0; }
|
||||
|
||||
bool operator!() const { return m_ptr == 0; }
|
||||
bool operator!() const { return m_ptr == nullptr; }
|
||||
|
||||
void reset() { m_ptr = 0; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue