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

instead of private.  also fixes some warnings.


git-svn-id: svn://10.0.0.236/trunk@134118 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%netscape.com
2002-11-19 19:42:46 +00:00
parent ea7a7325e9
commit f24b3a154a
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;