fixed up operator new usage

git-svn-id: svn://10.0.0.236/trunk@22208 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1999-02-26 20:02:06 +00:00
parent 9c4f03aa39
commit 8334239104
27 changed files with 39 additions and 257 deletions

View File

@@ -139,21 +139,11 @@ class SinkContext;
class HTMLContentSink : public nsIHTMLContentSink {
public:
void* operator new(size_t size) {
void* rv = ::operator new(size);
if (rv) {
nsCRT::zero(rv, size);
}
return rv;
}
void operator delete(void* ptr) {
::operator delete(ptr);
}
HTMLContentSink();
virtual ~HTMLContentSink();
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
nsresult Init(nsIDocument* aDoc,
nsIURL* aURL,
nsIWebShell* aContainer);