Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433

This commit is contained in:
warren@netscape.com
2000-06-03 09:46:12 +00:00
parent 1839b45a21
commit 6a06dfc026
276 changed files with 1145 additions and 1382 deletions

View File

@@ -34,7 +34,7 @@
* @See nsIBinaryOutputStream
*/
#include "nsBinaryStream.h"
#include "nsIAllocator.h"
#include "nsMemory.h"
#include <string.h>
// Swap macros, used to convert to/from canonical (big-endian) format
@@ -333,7 +333,7 @@ nsBinaryInputStream::ReadBytes(char* *aString, PRUint32 aLength)
PRUint32 bytesRead;
char* s;
s = (char*)nsAllocator::Alloc(aLength);
s = (char*)nsMemory::Alloc(aLength);
if (!s)
return NS_ERROR_OUT_OF_MEMORY;