UsbDk: CObjHolder: Replace NULL with nullptr
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
parent
5abd2b78c1
commit
f2b1a12610
1 changed files with 2 additions and 2 deletions
|
|
@ -40,14 +40,14 @@ public:
|
|||
~CObjHolder()
|
||||
{ delete m_Obj; }
|
||||
|
||||
operator bool() const { return m_Obj != NULL; }
|
||||
operator bool() const { return m_Obj != nullptr; }
|
||||
operator T *() const { return m_Obj; }
|
||||
T *operator ->() const { return m_Obj; }
|
||||
|
||||
T *detach()
|
||||
{
|
||||
auto ptr = m_Obj;
|
||||
m_Obj = NULL;
|
||||
m_Obj = nullptr;
|
||||
return ptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue