mirror of
https://github.com/Z3Prover/z3
synced 2026-01-04 18:18:48 +00:00
Use nullptr.
This commit is contained in:
parent
f01328c65f
commit
76eb7b9ede
625 changed files with 4639 additions and 4639 deletions
|
|
@ -74,7 +74,7 @@ public:
|
|||
typedef T * iterator;
|
||||
typedef const T * const_iterator;
|
||||
|
||||
array():m_data(0) {}
|
||||
array():m_data(nullptr) {}
|
||||
|
||||
/**
|
||||
\brief Store the array in the given chunk of memory (mem).
|
||||
|
|
@ -123,7 +123,7 @@ public:
|
|||
if (CallDestructors)
|
||||
destroy_elements();
|
||||
a.deallocate(space(size()), raw_ptr());
|
||||
m_data = 0;
|
||||
m_data = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -148,7 +148,7 @@ public:
|
|||
}
|
||||
|
||||
unsigned size() const {
|
||||
if (m_data == 0) {
|
||||
if (m_data == nullptr) {
|
||||
return 0;
|
||||
}
|
||||
return static_cast<unsigned>(reinterpret_cast<size_t *>(m_data)[SIZE_IDX]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue