clang-modernize -use-nullptr

and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
This commit is contained in:
Tillmann Karras
2014-03-09 21:14:26 +01:00
parent f28116b7da
commit d802d39281
292 changed files with 1526 additions and 1526 deletions

View File

@ -65,8 +65,8 @@ public:
ElementPtr *tmpptr = m_read_ptr;
// advance the read pointer
m_read_ptr = AtomicLoad(tmpptr->next);
// set the next element to NULL to stop the recursive deletion
tmpptr->next = NULL;
// set the next element to nullptr to stop the recursive deletion
tmpptr->next = nullptr;
delete tmpptr; // this also deletes the element
}
@ -81,7 +81,7 @@ public:
ElementPtr *tmpptr = m_read_ptr;
m_read_ptr = AtomicLoadAcquire(tmpptr->next);
t = std::move(tmpptr->current);
tmpptr->next = NULL;
tmpptr->next = nullptr;
delete tmpptr;
return true;
}
@ -100,7 +100,7 @@ private:
class ElementPtr
{
public:
ElementPtr() : next(NULL) {}
ElementPtr() : next(nullptr) {}
~ElementPtr()
{