From 88de910d8baf4fb32ca2060bfbc48619d56d0475 Mon Sep 17 00:00:00 2001 From: "rickg%netscape.com" Date: Sat, 17 Jul 1999 09:51:00 +0000 Subject: [PATCH] fix another error in observer-DB; thanks ramiro! git-svn-id: svn://10.0.0.236/trunk@39853 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/src/nsDTDUtils.cpp | 9 ++------- mozilla/parser/htmlparser/src/nsDTDUtils.cpp | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/mozilla/htmlparser/src/nsDTDUtils.cpp b/mozilla/htmlparser/src/nsDTDUtils.cpp index 79b21ab0bf9..99d6a202252 100644 --- a/mozilla/htmlparser/src/nsDTDUtils.cpp +++ b/mozilla/htmlparser/src/nsDTDUtils.cpp @@ -462,11 +462,6 @@ void CTokenRecycler::RecycleToken(CToken* aToken) { PRInt32 theType=aToken->GetTokenType(); CTokenFinder finder(aToken); CToken* theMatch=(CToken*)mTokenCache[theType-1]->FirstThat(finder); -#ifdef NS_DEBUG - if(theMatch) { - int x=5; - } -#endif mTokenCache[theType-1]->Push(aToken); } } @@ -643,14 +638,14 @@ PRUint32 AccumulateCRC(PRUint32 crc_accum, char *data_blk_ptr, int data_blk_size CObserverDictionary::CObserverDictionary() { + nsCRT::zero(mObservers,sizeof(mObservers)); + nsAutoString theHTMLTopic("htmlparser"); RegisterObservers(theHTMLTopic); nsAutoString theXMLTopic("xmlparser"); RegisterObservers(theXMLTopic); - nsCRT::zero(mObservers,sizeof(mObservers)); - } CObserverDictionary::~CObserverDictionary() { diff --git a/mozilla/parser/htmlparser/src/nsDTDUtils.cpp b/mozilla/parser/htmlparser/src/nsDTDUtils.cpp index 79b21ab0bf9..99d6a202252 100644 --- a/mozilla/parser/htmlparser/src/nsDTDUtils.cpp +++ b/mozilla/parser/htmlparser/src/nsDTDUtils.cpp @@ -462,11 +462,6 @@ void CTokenRecycler::RecycleToken(CToken* aToken) { PRInt32 theType=aToken->GetTokenType(); CTokenFinder finder(aToken); CToken* theMatch=(CToken*)mTokenCache[theType-1]->FirstThat(finder); -#ifdef NS_DEBUG - if(theMatch) { - int x=5; - } -#endif mTokenCache[theType-1]->Push(aToken); } } @@ -643,14 +638,14 @@ PRUint32 AccumulateCRC(PRUint32 crc_accum, char *data_blk_ptr, int data_blk_size CObserverDictionary::CObserverDictionary() { + nsCRT::zero(mObservers,sizeof(mObservers)); + nsAutoString theHTMLTopic("htmlparser"); RegisterObservers(theHTMLTopic); nsAutoString theXMLTopic("xmlparser"); RegisterObservers(theXMLTopic); - nsCRT::zero(mObservers,sizeof(mObservers)); - } CObserverDictionary::~CObserverDictionary() {