Added an assertion after OpenContainer() to help catch parse errors.

git-svn-id: svn://10.0.0.236/trunk@17967 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
1999-01-18 22:14:59 +00:00
parent df9664e830
commit 4b67c3a3c3

View File

@@ -451,6 +451,7 @@ RDFContentSinkImpl::~RDFContentSinkImpl()
NS_IF_RELEASE(mNameSpaceManager);
if (mNameSpaceStack) {
NS_PRECONDITION(0 == mNameSpaceStack->Count(), "namespace stack not empty");
// There shouldn't be any here except in an error condition
PRInt32 index = mNameSpaceStack->Count();
@@ -590,6 +591,7 @@ RDFContentSinkImpl::OpenContainer(const nsIParserNode& aNode)
break;
}
NS_ASSERTION(NS_SUCCEEDED(rv), "unexpected content");
return rv;
}