fixing linux bustage: make |nsCParserNode::operator delete| protected

instead of private.  also fixes some warnings.
This commit is contained in:
darin%netscape.com 2002-11-19 19:42:46 +00:00
parent 6ef160454d
commit 51f2223c79
2 changed files with 8 additions and 8 deletions

View File

@ -85,7 +85,7 @@ class nsCParserNode : public nsIParserNode {
}
#ifndef HEAP_ALLOCATED_NODES
private:
protected:
/**
* Hide operator new; clients should use Create() instead.
@ -288,14 +288,14 @@ public:
}
nsCParserStartNode()
: mAttributes(0), nsCParserNode() { }
: nsCParserNode(), mAttributes(0) { }
nsCParserStartNode(CToken* aToken,
nsTokenAllocator* aTokenAllocator,
nsNodeAllocator* aNodeAllocator = 0)
: mAttributes(0), nsCParserNode(aToken, aTokenAllocator, aNodeAllocator) { }
: nsCParserNode(aToken, aTokenAllocator, aNodeAllocator), mAttributes(0) { }
~nsCParserStartNode()
virtual ~nsCParserStartNode()
{
NS_ASSERTION(0 != mTokenAllocator, "Error: no token allocator");
CToken* theAttrToken = 0;

View File

@ -85,7 +85,7 @@ class nsCParserNode : public nsIParserNode {
}
#ifndef HEAP_ALLOCATED_NODES
private:
protected:
/**
* Hide operator new; clients should use Create() instead.
@ -288,14 +288,14 @@ public:
}
nsCParserStartNode()
: mAttributes(0), nsCParserNode() { }
: nsCParserNode(), mAttributes(0) { }
nsCParserStartNode(CToken* aToken,
nsTokenAllocator* aTokenAllocator,
nsNodeAllocator* aNodeAllocator = 0)
: mAttributes(0), nsCParserNode(aToken, aTokenAllocator, aNodeAllocator) { }
: nsCParserNode(aToken, aTokenAllocator, aNodeAllocator), mAttributes(0) { }
~nsCParserStartNode()
virtual ~nsCParserStartNode()
{
NS_ASSERTION(0 != mTokenAllocator, "Error: no token allocator");
CToken* theAttrToken = 0;