fixed bug22040 with patch by vidur; r=kmcclusk. Also removed warnings.

git-svn-id: svn://10.0.0.236/trunk@56469 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-12-23 01:04:29 +00:00
parent 74aea33376
commit 4ceb98d7fd
6 changed files with 10 additions and 10 deletions

View File

@@ -1491,9 +1491,7 @@ void nsParser::DebugDumpSource(nsOutputStream& aStream) {
PRInt32 theIndex=-1;
nsITokenizer* theTokenizer=0;
nsresult result=mParserContext->mDTD->GetTokenizer(theTokenizer);
if(theTokenizer){
if(NS_SUCCEEDED(mParserContext->mDTD->GetTokenizer(theTokenizer))){
CToken* theToken;
while(nsnull != (theToken=theTokenizer->GetTokenAt(++theIndex))) {
// theToken->DebugDumpToken(out);