mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
fix another error in observer-DB; thanks ramiro!
This commit is contained in:
parent
6427f2ce5c
commit
d9e8081acc
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user