UsbDk: CObjHolder: Replace NULL with nullptr

Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
Dmitry Fleytman 2014-04-05 12:45:31 +03:00
parent 5abd2b78c1
commit f2b1a12610

View file

@ -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;
}