mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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:
@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user