From abb76ec52556ae5e433a28782be29361b3e036e6 Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Wed, 14 Apr 1999 07:15:11 +0000 Subject: [PATCH] PRBool-to-error-code double conversion. Conversion for AppendElement() happened in nsSupportsArray.h, we don't need to convert the usage here. --- content/xul/document/src/nsXULDocument.cpp | 2 +- rdf/content/src/nsXULDocument.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/xul/document/src/nsXULDocument.cpp b/content/xul/document/src/nsXULDocument.cpp index 0b962676326..7a93abb0d72 100644 --- a/content/xul/document/src/nsXULDocument.cpp +++ b/content/xul/document/src/nsXULDocument.cpp @@ -2178,7 +2178,7 @@ XULDocumentImpl::AddContentModelBuilder(nsIRDFContentModelBuilder* aBuilder) return rv; } - return mBuilders->AppendElement(aBuilder) ? NS_OK : NS_ERROR_FAILURE; + return mBuilders->AppendElement(aBuilder); } NS_IMETHODIMP diff --git a/rdf/content/src/nsXULDocument.cpp b/rdf/content/src/nsXULDocument.cpp index 0b962676326..7a93abb0d72 100644 --- a/rdf/content/src/nsXULDocument.cpp +++ b/rdf/content/src/nsXULDocument.cpp @@ -2178,7 +2178,7 @@ XULDocumentImpl::AddContentModelBuilder(nsIRDFContentModelBuilder* aBuilder) return rv; } - return mBuilders->AppendElement(aBuilder) ? NS_OK : NS_ERROR_FAILURE; + return mBuilders->AppendElement(aBuilder); } NS_IMETHODIMP