3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 10:55:50 +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

@ -222,7 +222,7 @@ template<typename T>
class scoped_ptr {
T * m_ptr;
public:
scoped_ptr(T * ptr=0):
scoped_ptr(T * ptr=nullptr):
m_ptr(ptr) {
}
@ -239,7 +239,7 @@ public:
}
operator bool() const {
return m_ptr != 0;
return m_ptr != nullptr;
}
const T & operator*() const {
@ -260,7 +260,7 @@ public:
T * detach() {
T* tmp = m_ptr;
m_ptr = 0;
m_ptr = nullptr;
return tmp;
}