removed unused includes; fixed addref bug; r=karnaze

git-svn-id: svn://10.0.0.236/trunk@64813 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
2000-04-01 00:23:24 +00:00
parent 2fc95d08af
commit c056be4201
20 changed files with 16 additions and 52 deletions

View File

@@ -51,9 +51,6 @@
#include "nsHTMLEntities.h"
#include "nsLinebreakConverter.h"
#ifdef XP_PC
#include <direct.h> //this is here for debug reasons...
#endif
#include "prmem.h"

View File

@@ -51,9 +51,6 @@
#include "nsHTMLEntities.h"
#include "nsLinebreakConverter.h"
#ifdef XP_PC
#include <direct.h> //this is here for debug reasons...
#endif
#include "prmem.h"

View File

@@ -45,9 +45,6 @@
#include "plstr.h"
#include "nsDebug.h"
#ifdef XP_PC
#include <direct.h> //this is here for debug reasons...
#endif
#include "prmem.h"

View File

@@ -23,7 +23,6 @@
//Testing stream crap...
#include <direct.h>
#include <stdlib.h>
#include <io.h>

View File

@@ -929,10 +929,13 @@ nsDeque* nsObserverTopic::GetObserversForTag(eHTMLTags aTag) {
}
void nsObserverTopic::RegisterObserverForTag(nsIElementObserver *anObserver,eHTMLTags aTag) {
if(mObservers[aTag] == nsnull) {
mObservers[aTag] = new nsDeque(0);
if(anObserver) {
if(mObservers[aTag] == nsnull) {
mObservers[aTag] = new nsDeque(0);
}
NS_ADDREF(anObserver);
mObservers[aTag]->Push(anObserver);
}
mObservers[aTag]->Push(anObserver);
}

View File

@@ -47,9 +47,6 @@
#include "plstr.h"
#include "prlog.h"
#ifdef XP_PC
#include <direct.h> //this is here for debug reasons...
#endif
#include "prmem.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);

View File

@@ -1594,8 +1594,9 @@ theContext->mTransferBufferSize;
theContext->mScanner->Append(theContext->mTransferBuffer,theNumRead);
#if 0
int dump=0;
static int dump=0;
if(dump) {
theContext->mTransferBuffer[theNumRead]=0;
printf("\n-----------------\n%s",theContext->mTransferBuffer);
}
#endif

View File

@@ -48,9 +48,6 @@
#include "prio.h"
#include "plstr.h"
#ifdef XP_PC
#include <direct.h> //this is here for debug reasons...
#endif
#include "prmem.h"

View File

@@ -61,9 +61,6 @@
#include "prio.h"
#include "plstr.h"
#ifdef XP_PC
#include <direct.h> //this is here for debug reasons...
#endif
#include "prmem.h"

View File

@@ -47,9 +47,6 @@
#include "prio.h"
#include "plstr.h"
#ifdef XP_PC
#include <direct.h> //this is here for debug reasons...
#endif
#include "prmem.h"
#include "nsSpecialSystemDirectory.h"