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:
@@ -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"
|
||||
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
//Testing stream crap...
|
||||
|
||||
#include <direct.h>
|
||||
#include <stdlib.h>
|
||||
#include <io.h>
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user