small bug fixes and removal of global statics

git-svn-id: svn://10.0.0.236/trunk@22072 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-02-26 06:33:54 +00:00
parent b0e3a4ac8c
commit 5012f4e582
56 changed files with 279 additions and 370 deletions

View File

@@ -52,16 +52,6 @@ static NS_DEFINE_IID(kIDTDIID, NS_IDTD_IID);
static NS_DEFINE_IID(kClassIID, NS_VIEWSOURCE_HTML_IID);
//static const char* kNullURL = "Error: Null URL given";
//static const char* kNullFilename= "Error: Null filename given";
//static const char* kNullTokenizer = "Error: Unable to construct tokenizer";
//static const char* kNullToken = "Error: Null token given";
//static const char* kInvalidTagStackPos = "Error: invalid tag stack position";
static const char* kViewSourceCommand= "view-source";
static nsAutoString gEmpty;
static CTokenRecycler gTokenRecycler;
/**
* This method gets called as part of our COM-like interfaces.
@@ -120,8 +110,6 @@ NS_IMPL_ADDREF(CViewSourceHTML)
NS_IMPL_RELEASE(CViewSourceHTML)
static CTokenDeallocator gTokenKiller;
void SetFont(const char* aFace,const char* aSize,PRBool aEnable,nsIContentSink& aSink) {
if(aEnable){
@@ -176,7 +164,7 @@ void SetStyle(eHTMLTags theTag,PRBool aEnable,nsIContentSink& aSink) {
* @param
* @return
*/
CViewSourceHTML::CViewSourceHTML() : nsIDTD(), mTokenDeque(gTokenKiller) {
CViewSourceHTML::CViewSourceHTML() : nsIDTD() {
NS_INIT_REFCNT();
mParser=0;
mSink=0;