Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
git-svn-id: svn://10.0.0.236/trunk@71450 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "nsByteArrayInputStream.h"
|
||||
#include "nsIAllocator.h"
|
||||
#include "nsMemory.h"
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS3(nsByteArrayInputStream, nsIInputStream, nsIBaseStream, nsIByteArrayInputStream)
|
||||
|
||||
@@ -33,7 +33,7 @@ nsByteArrayInputStream::nsByteArrayInputStream (char *buffer, PRUint32 bytes)
|
||||
nsByteArrayInputStream::~nsByteArrayInputStream ()
|
||||
{
|
||||
if (_buffer != NULL)
|
||||
nsAllocator::Free (_buffer);
|
||||
nsMemory::Free (_buffer);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
@@ -80,7 +80,7 @@ nsByteArrayInputStream::Close ()
|
||||
{
|
||||
if (_buffer != NULL)
|
||||
{
|
||||
nsAllocator::Free (_buffer);
|
||||
nsMemory::Free (_buffer);
|
||||
_buffer = NULL;
|
||||
_nbytes = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user