mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 16:31:44 +00:00
[RAPPS] Do not implicitly cast pointer to BOOL
This commit is contained in:
parent
b0abd14b03
commit
7a52db76c5
1 changed files with 7 additions and 3 deletions
|
@ -96,9 +96,13 @@ public:
|
|||
|
||||
BOOL RemoveAt(INT i)
|
||||
{
|
||||
T* ptr = (T*) DPA_GetPtr(m_hDpa, i);
|
||||
OnRemoveItem(ptr);
|
||||
return DPA_DeletePtr(m_hDpa, i);
|
||||
PVOID ptr = DPA_DeletePtr(m_hDpa, i);
|
||||
if (ptr != NULL)
|
||||
{
|
||||
OnRemoveItem(reinterpret_cast<T*>(ptr));
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL Clear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue