Fix gcc-2.7.2.3 bustage.

git-svn-id: svn://10.0.0.236/trunk@91273 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
2001-04-04 07:54:23 +00:00
parent e21e734c03
commit 6ebd59f729
7 changed files with 40 additions and 36 deletions

View File

@@ -132,7 +132,7 @@ nsContentTestNode::FilterInstantiations(InstantiationSet& aInstantiations, void*
if (consistent) {
Element* element =
Element::Create(mConflictSet.GetPool(),
nsContentTestNode::Element::Create(mConflictSet.GetPool(),
VALUE_TO_ICONTENT(contentValue));
if (! element)
@@ -168,7 +168,7 @@ nsContentTestNode::FilterInstantiations(InstantiationSet& aInstantiations, void*
newinst.AddAssignment(mIdVariable, Value(resource.get()));
Element* element =
Element::Create(mConflictSet.GetPool(), content);
nsContentTestNode::Element::Create(mConflictSet.GetPool(), content);
if (! element)
return NS_ERROR_OUT_OF_MEMORY;
@@ -213,7 +213,7 @@ nsContentTestNode::FilterInstantiations(InstantiationSet& aInstantiations, void*
newinst.AddAssignment(mContentVariable, Value(content.get()));
Element* element =
Element::Create(mConflictSet.GetPool(), content);
nsContentTestNode::Element::Create(mConflictSet.GetPool(), content);
if (! element)
return NS_ERROR_OUT_OF_MEMORY;

View File

@@ -76,7 +76,7 @@ nsOutlinerRowTestNode::FilterInstantiations(InstantiationSet& aInstantiations, v
PR_LOG(gXULTemplateLog, PR_LOG_DEBUG, (" => passed"));
Element* element =
Element::Create(mConflictSet.GetPool(), container);
nsOutlinerRowTestNode::Element::Create(mConflictSet.GetPool(), container);
if (! element)
return NS_ERROR_OUT_OF_MEMORY;

View File

@@ -173,9 +173,9 @@ nsRDFConInstanceTestNode::FilterInstantiations(InstantiationSet& aInstantiations
if (empty == mEmpty) {
Element* element =
Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(value),
mContainer, mEmpty);
nsRDFConInstanceTestNode::Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(value),
mContainer, mEmpty);
if (! element)
return NS_ERROR_OUT_OF_MEMORY;
@@ -235,9 +235,9 @@ nsRDFConInstanceTestNode::FilterInstantiations(InstantiationSet& aInstantiations
if (container == mContainer) {
Element* element =
Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(value),
mContainer, mEmpty);
nsRDFConInstanceTestNode::Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(value),
mContainer, mEmpty);
if (! element)

View File

@@ -184,9 +184,9 @@ nsRDFConMemberTestNode::FilterInstantiations(InstantiationSet& aInstantiations,
if (isconsistent) {
// Add a memory element to our set-of-support.
Element* element =
Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(containerValue),
VALUE_TO_IRDFNODE(memberValue));
nsRDFConMemberTestNode::Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(containerValue),
VALUE_TO_IRDFNODE(memberValue));
if (! element)
return NS_ERROR_OUT_OF_MEMORY;
@@ -240,9 +240,9 @@ nsRDFConMemberTestNode::FilterInstantiations(InstantiationSet& aInstantiations,
newinst.AddAssignment(mMemberVariable, Value(node.get()));
Element* element =
Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(containerValue),
node);
nsRDFConMemberTestNode::Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(containerValue),
node);
if (! element)
return NS_ERROR_OUT_OF_MEMORY;
@@ -333,9 +333,9 @@ nsRDFConMemberTestNode::FilterInstantiations(InstantiationSet& aInstantiations,
newinst.AddAssignment(mContainerVariable, Value(source.get()));
Element* element =
Element::Create(mConflictSet.GetPool(),
source,
VALUE_TO_IRDFNODE(memberValue));
nsRDFConMemberTestNode::Element::Create(mConflictSet.GetPool(),
source,
VALUE_TO_IRDFNODE(memberValue));
if (! element)
return NS_ERROR_OUT_OF_MEMORY;
@@ -429,14 +429,16 @@ nsRDFConMemberTestNode::FilterInstantiations(InstantiationSet& aInstantiations,
Element* element;
if (hasContainerBinding) {
element = Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(containerValue),
VALUE_TO_IRDFNODE(value));
element =
nsRDFConMemberTestNode::Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(containerValue),
VALUE_TO_IRDFNODE(value));
}
else {
element = Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(value),
VALUE_TO_IRDFNODE(memberValue));
element =
nsRDFConMemberTestNode::Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(value),
VALUE_TO_IRDFNODE(memberValue));
}
if (! element)

View File

@@ -188,10 +188,10 @@ nsRDFPropertyTestNode::FilterInstantiations(InstantiationSet& aInstantiations, v
if (hasAssertion) {
// it's consistent.
Element* element =
Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(sourceValue),
mProperty,
VALUE_TO_IRDFNODE(targetValue));
nsRDFPropertyTestNode::Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(sourceValue),
mProperty,
VALUE_TO_IRDFNODE(targetValue));
if (! element)
return NS_ERROR_OUT_OF_MEMORY;
@@ -288,10 +288,10 @@ nsRDFPropertyTestNode::FilterInstantiations(InstantiationSet& aInstantiations, v
newinst.AddAssignment(variable, value);
Element* element =
Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(sourceValue),
mProperty,
VALUE_TO_IRDFNODE(targetValue));
nsRDFPropertyTestNode::Element::Create(mConflictSet.GetPool(),
VALUE_TO_IRDFRESOURCE(sourceValue),
mProperty,
VALUE_TO_IRDFNODE(targetValue));
if (! element)
return NS_ERROR_OUT_OF_MEMORY;

View File

@@ -277,7 +277,8 @@ nsTemplateMatchRefSet::ConstIterator
nsTemplateMatchRefSet::First() const
{
if (mInlineMatches.mCount <= kMaxInlineMatches)
return ConstIterator(this, NS_CONST_CAST(nsTemplateMatch**, mInlineMatches.mEntries));
// XXX C-style cast to avoid gcc-2.7.2.3. bustage
return ConstIterator(this, (nsTemplateMatch**) mInlineMatches.mEntries);
Entry* entry = NS_REINTERPRET_CAST(Entry*, mTable.entryStore);
Entry* limit = entry + PR_BIT(mTable.sizeLog2);
@@ -294,7 +295,8 @@ nsTemplateMatchRefSet::Last() const
{
PRUint32 count = mInlineMatches.mCount;
if (count <= kMaxInlineMatches) {
nsTemplateMatch** first = NS_CONST_CAST(nsTemplateMatch**, mInlineMatches.mEntries);
// XXX C-style cast to avoid gcc-2.7.2.3 bustage
nsTemplateMatch** first = (nsTemplateMatch**) mInlineMatches.mEntries;
nsTemplateMatch** limit = first + count;
return ConstIterator(this, limit);
}

View File

@@ -76,7 +76,7 @@ nsOutlinerRowTestNode::FilterInstantiations(InstantiationSet& aInstantiations, v
PR_LOG(gXULTemplateLog, PR_LOG_DEBUG, (" => passed"));
Element* element =
Element::Create(mConflictSet.GetPool(), container);
nsOutlinerRowTestNode::Element::Create(mConflictSet.GetPool(), container);
if (! element)
return NS_ERROR_OUT_OF_MEMORY;