UsbDk: Make CObjHolder::operator= follow best practices

Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
Dmitry Fleytman 2014-09-09 17:35:00 +03:00
parent e04099b3d6
commit 9efa94607e

View file

@ -83,8 +83,11 @@ public:
}
}
void operator= (T *ptr)
{ m_Obj = ptr; }
T* operator= (T *ptr)
{
m_Obj = ptr;
return ptr;
}
static void ArrayHolderDelete(T *Obj)
{ delete[] Obj; }