mirror of
https://github.com/Z3Prover/z3
synced 2025-10-03 14:33:56 +00:00
Use nullptr.
This commit is contained in:
parent
f01328c65f
commit
76eb7b9ede
625 changed files with 4639 additions and 4639 deletions
|
@ -90,7 +90,7 @@ void deallocf(char const* file, int line, T * ptr) {
|
|||
|
||||
template<typename T>
|
||||
void dealloc(T * ptr) {
|
||||
if (ptr == 0) return;
|
||||
if (ptr == nullptr) return;
|
||||
ptr->~T();
|
||||
memory::deallocate(ptr);
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ T * alloc_vect(unsigned sz) {
|
|||
|
||||
template<typename T>
|
||||
void dealloc_vect(T * ptr, unsigned sz) {
|
||||
if (ptr == 0) return;
|
||||
if (ptr == nullptr) return;
|
||||
T * curr = ptr;
|
||||
for (unsigned i = 0; i < sz; i++, curr++)
|
||||
curr->~T();
|
||||
|
@ -122,7 +122,7 @@ void dealloc_vect(T * ptr, unsigned sz) {
|
|||
|
||||
template<typename T>
|
||||
void dealloc_svect(T * ptr) {
|
||||
if (ptr == 0) return;
|
||||
if (ptr == nullptr) return;
|
||||
memory::deallocate(ptr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue