mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Backed out revision 3.2. In C and C++, a pointer to any datatype
can be implicitly cast to void *. So the explicit (void *) cast in the argument for PR_Free() should not be necessary.
This commit is contained in:
parent
008bf9e083
commit
d5808c772f
@ -121,7 +121,7 @@ PR_EXTERN(void) PR_Free(void *ptr);
|
||||
** OUTPUTS: the referenced object is returned to the heap
|
||||
** RETURN: void
|
||||
***********************************************************************/
|
||||
#define PR_DELETE(_ptr) { PR_Free((void*)_ptr); (_ptr) = NULL; }
|
||||
#define PR_DELETE(_ptr) { PR_Free(_ptr); (_ptr) = NULL; }
|
||||
|
||||
/***********************************************************************
|
||||
** FUNCTION: PR_FREEIF()
|
||||
|
Loading…
Reference in New Issue
Block a user