3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-08 00:05:46 +00:00

Use nullptr.

This commit is contained in:
Bruce Mitchener 2018-02-12 14:05:55 +07:00
parent f01328c65f
commit 76eb7b9ede
625 changed files with 4639 additions and 4639 deletions

View file

@ -37,7 +37,7 @@ class ref {
public:
ref():
m_ptr(0) {
m_ptr(nullptr) {
}
ref(T * ptr):
@ -64,7 +64,7 @@ public:
}
operator bool() const {
return m_ptr != 0;
return m_ptr != nullptr;
}
const T & operator*() const {
@ -100,12 +100,12 @@ public:
void reset() {
dec_ref();
m_ptr = 0;
m_ptr = nullptr;
}
T* detach() {
T* tmp = m_ptr;
m_ptr = 0;
m_ptr = nullptr;
return tmp;
}