UsbDk: Make CObjHolder::operator= follow best practices
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
parent
e04099b3d6
commit
9efa94607e
1 changed files with 5 additions and 2 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue