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:
warren%netscape.com
2000-06-03 09:46:12 +00:00
parent 1129de8b91
commit cc5d426fbe
317 changed files with 1275 additions and 1512 deletions

View File

@@ -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;
}