diff --git a/mozilla/htmlparser/src/CNavDTD.cpp b/mozilla/htmlparser/src/CNavDTD.cpp
index 7f95a4a3327..24133b263d0 100644
--- a/mozilla/htmlparser/src/CNavDTD.cpp
+++ b/mozilla/htmlparser/src/CNavDTD.cpp
@@ -480,8 +480,8 @@ nsresult CNavDTD::BuildModel(nsIParser* aParser,nsITokenizer* aTokenizer,nsIToke
if(mIsText) {
//we do this little trick for text files, in both normal and viewsource mode...
- CStartToken *theToken=(CStartToken*)mTokenRecycler->CreateTokenOfType(eToken_start,eHTMLTag_pre);
- HandleStartToken(theToken);
+ CStartToken *theToken2=(CStartToken*)mTokenRecycler->CreateTokenOfType(eToken_start,eHTMLTag_pre);
+ HandleStartToken(theToken2);
}
}
diff --git a/mozilla/htmlparser/src/CRtfDTD.cpp b/mozilla/htmlparser/src/CRtfDTD.cpp
index a65dd635e75..25936bcc5f5 100644
--- a/mozilla/htmlparser/src/CRtfDTD.cpp
+++ b/mozilla/htmlparser/src/CRtfDTD.cpp
@@ -182,6 +182,7 @@ static RTFEntry gRTFTable[] = {
* @param
* @return
*/
+#if 0
static const char* GetTagName(eRTFTags aTag) {
PRInt32 cnt=sizeof(gRTFTable)/sizeof(RTFEntry);
PRInt32 low=0;
@@ -198,6 +199,7 @@ static const char* GetTagName(eRTFTags aTag) {
}
return "";
}
+#endif
/**
*
@@ -674,7 +676,6 @@ nsresult CRtfDTD::EmitStyleContainer(CToken* aToken,eRTFTags aTag,PRBool aState)
nsresult result=NS_OK;
CRTFControlWord* theToken=(CRTFControlWord*)aToken;
- PRUnichar theChar=theToken->mArgument.CharAt(0);
const char* theTag=0;
eHTMLTags theID=eHTMLTag_unknown;
@@ -752,8 +753,8 @@ nsresult CRtfDTD::HandleControlWord(CToken* aToken){
break;
case eRTFCtrl_tab:
{
- CTextToken theToken(" ");
- result=HandleContent(&theToken);
+ CTextToken theToken2(" ");
+ result=HandleContent(&theToken2);
}
break;
case eRTFCtrl_bold:
@@ -888,7 +889,7 @@ nsresult CRTFControlWord::Consume(PRUnichar aChar,nsScanner& aScanner,PRInt32 aM
if(NS_SUCCEEDED(result)) {
if(('a'<=theChar) && (theChar<='z')) {
- PRInt32 result=aScanner.ReadWhile(mTextValue,gAlphaChars,PR_TRUE,PR_FALSE);
+ result=aScanner.ReadWhile(mTextValue,gAlphaChars,PR_TRUE,PR_FALSE);
if(NS_OK==result) {
//ok, now look for an option parameter...
diff --git a/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp b/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp
index 0dc23b19cf3..8437f8bd80a 100644
--- a/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp
+++ b/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp
@@ -1111,7 +1111,7 @@ NS_IMETHODIMP
nsHTMLContentSinkStream::OpenContainer(const nsIParserNode& aNode){
const nsString& name = aNode.GetText();
- if (name.Equals("XIF_DOC_INFO"))
+ if (name.Equals("document_info"))
{
PRInt32 count=aNode.GetAttributeCount();
for(PRInt32 i=0;iCreateTokenOfType(eToken_start,eHTMLTag_pre);
- HandleStartToken(theToken);
+ CStartToken *theToken2=(CStartToken*)mTokenRecycler->CreateTokenOfType(eToken_start,eHTMLTag_pre);
+ HandleStartToken(theToken2);
}
}
diff --git a/mozilla/parser/htmlparser/src/CRtfDTD.cpp b/mozilla/parser/htmlparser/src/CRtfDTD.cpp
index a65dd635e75..25936bcc5f5 100644
--- a/mozilla/parser/htmlparser/src/CRtfDTD.cpp
+++ b/mozilla/parser/htmlparser/src/CRtfDTD.cpp
@@ -182,6 +182,7 @@ static RTFEntry gRTFTable[] = {
* @param
* @return
*/
+#if 0
static const char* GetTagName(eRTFTags aTag) {
PRInt32 cnt=sizeof(gRTFTable)/sizeof(RTFEntry);
PRInt32 low=0;
@@ -198,6 +199,7 @@ static const char* GetTagName(eRTFTags aTag) {
}
return "";
}
+#endif
/**
*
@@ -674,7 +676,6 @@ nsresult CRtfDTD::EmitStyleContainer(CToken* aToken,eRTFTags aTag,PRBool aState)
nsresult result=NS_OK;
CRTFControlWord* theToken=(CRTFControlWord*)aToken;
- PRUnichar theChar=theToken->mArgument.CharAt(0);
const char* theTag=0;
eHTMLTags theID=eHTMLTag_unknown;
@@ -752,8 +753,8 @@ nsresult CRtfDTD::HandleControlWord(CToken* aToken){
break;
case eRTFCtrl_tab:
{
- CTextToken theToken(" ");
- result=HandleContent(&theToken);
+ CTextToken theToken2(" ");
+ result=HandleContent(&theToken2);
}
break;
case eRTFCtrl_bold:
@@ -888,7 +889,7 @@ nsresult CRTFControlWord::Consume(PRUnichar aChar,nsScanner& aScanner,PRInt32 aM
if(NS_SUCCEEDED(result)) {
if(('a'<=theChar) && (theChar<='z')) {
- PRInt32 result=aScanner.ReadWhile(mTextValue,gAlphaChars,PR_TRUE,PR_FALSE);
+ result=aScanner.ReadWhile(mTextValue,gAlphaChars,PR_TRUE,PR_FALSE);
if(NS_OK==result) {
//ok, now look for an option parameter...
diff --git a/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp b/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp
index 0dc23b19cf3..8437f8bd80a 100644
--- a/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp
+++ b/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp
@@ -1111,7 +1111,7 @@ NS_IMETHODIMP
nsHTMLContentSinkStream::OpenContainer(const nsIParserNode& aNode){
const nsString& name = aNode.GetText();
- if (name.Equals("XIF_DOC_INFO"))
+ if (name.Equals("document_info"))
{
PRInt32 count=aNode.GetAttributeCount();
for(PRInt32 i=0;i