Fix Linux bustage.

This commit is contained in:
hyatt%netscape.com 1999-12-05 02:24:02 +00:00
parent 7127cadec4
commit 482f0f8746
2 changed files with 8 additions and 6 deletions

View File

@ -117,12 +117,13 @@ public:
// (which comes from the presShell) to perform the allocation.
void* operator new(size_t sz, nsIPresShell* aPresShell);
private:
// Overridden to prevent the global delete from being called, since the memory
// came out of an nsIArena instead of the global delete operator's heap. This is private
// to ensure that only the base class Destroy is allowed to delete the frame.
// came out of an nsIArena instead of the global delete operator's heap.
// XXX Would like to make this private some day, but our UNIX compilers can't
// deal with it.
void operator delete(void* aPtr, size_t sz);
private:
// The normal operator new is disallowed on nsFrames.
void* operator new(size_t sz) { return nsnull; };

View File

@ -117,12 +117,13 @@ public:
// (which comes from the presShell) to perform the allocation.
void* operator new(size_t sz, nsIPresShell* aPresShell);
private:
// Overridden to prevent the global delete from being called, since the memory
// came out of an nsIArena instead of the global delete operator's heap. This is private
// to ensure that only the base class Destroy is allowed to delete the frame.
// came out of an nsIArena instead of the global delete operator's heap.
// XXX Would like to make this private some day, but our UNIX compilers can't
// deal with it.
void operator delete(void* aPtr, size_t sz);
private:
// The normal operator new is disallowed on nsFrames.
void* operator new(size_t sz) { return nsnull; };