зеркало из https://github.com/mozilla/pjs.git
removed warnings; r=none
This commit is contained in:
Родитель
49fc717592
Коммит
23735ae8a7
|
@ -93,7 +93,6 @@ CParserContext::CParserContext(const CParserContext &aContext) : mMimeType() {
|
|||
mStreamListenerState=aContext.mStreamListenerState;
|
||||
mMultipart=aContext.mMultipart;
|
||||
mContextType=aContext.mContextType;
|
||||
mCopyUnused;
|
||||
mChannel=aContext.mChannel;
|
||||
mParserCommand=aContext.mParserCommand;
|
||||
SetMimeType(aContext.mMimeType);
|
||||
|
|
|
@ -1039,7 +1039,6 @@ CObserverService::~CObserverService() {
|
|||
}
|
||||
|
||||
nsObserverTopic* CObserverService::GetTopic(const nsString& aTopic) {
|
||||
PRInt32 theSize=mTopics.GetSize();
|
||||
PRInt32 theIndex=0;
|
||||
nsObserverTopic *theTopic=(nsObserverTopic*)mTopics.ObjectAt(theIndex++);
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@ void Initialize(eHTMLTags aTag,
|
|||
int aInclusionBits,
|
||||
int aExclusionBits,
|
||||
int aSpecialProperties,
|
||||
int aPropagateRange,
|
||||
PRUint32 aPropagateRange,
|
||||
TagList* aSpecialParents,
|
||||
TagList* aSpecialKids,
|
||||
eHTMLTags aSkipTarget
|
||||
|
|
|
@ -200,7 +200,7 @@ struct nsHTMLElement {
|
|||
int mInclusionBits; //defines parental and containment rules
|
||||
int mExclusionBits; //defines things you CANNOT contain
|
||||
int mSpecialProperties; //used for various special purposes...
|
||||
int mPropagateRange; //tells us how far a parent is willing to prop. badly formed children
|
||||
PRUint32 mPropagateRange; //tells us how far a parent is willing to prop. badly formed children
|
||||
TagList* mSpecialParents; //These are the special tags that contain this tag (directly)
|
||||
TagList* mSpecialKids; //These are the extra things you can contain
|
||||
eHTMLTags mSkipTarget; //If set, then we skip all content until this tag is seen
|
||||
|
|
|
@ -1010,7 +1010,9 @@ PRBool nsHTMLContentSinkStream::HasLongLines(const nsString& text)
|
|||
{
|
||||
const PRInt32 longLineLen = 128;
|
||||
nsString str = text;
|
||||
for (PRInt32 start = 0; start < text.Length(); )
|
||||
PRUint32 start=0;
|
||||
PRUint32 theLen=text.Length();
|
||||
for (start = 0; start < theLen; )
|
||||
{
|
||||
PRInt32 eol = text.FindChar('\n', PR_FALSE, start);
|
||||
if (eol < 0) eol = text.Length();
|
||||
|
|
|
@ -401,14 +401,6 @@ PRBool nsHTMLToTXTSinkStream::DoOutput()
|
|||
return mDoFragment || inBody;
|
||||
}
|
||||
|
||||
nsAutoString
|
||||
Spaces(PRInt32 count)
|
||||
{
|
||||
nsAutoString result;
|
||||
while (result.Length() < count)
|
||||
result += ' ';
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is used to a general container.
|
||||
|
@ -818,7 +810,7 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode)
|
|||
|
||||
// Make a line of dashes as wide as the wrap width
|
||||
nsAutoString line;
|
||||
int width = (mWrapColumn > 0 ? mWrapColumn : 25);
|
||||
PRUint32 width = (mWrapColumn > 0 ? mWrapColumn : 25);
|
||||
while (line.Length() < width)
|
||||
line += '-';
|
||||
Write(line);
|
||||
|
|
|
@ -56,7 +56,7 @@ class nsIURI;
|
|||
enum eParserCommands {
|
||||
eViewNormal,
|
||||
eViewSource,
|
||||
eViewErrors,
|
||||
eViewErrors
|
||||
};
|
||||
|
||||
enum eCRCQuality {
|
||||
|
|
|
@ -257,7 +257,7 @@ PRBool nsScanner::Insert(const nsString& aBuffer) {
|
|||
*/
|
||||
PRBool nsScanner::Append(const nsString& aBuffer) {
|
||||
|
||||
PRInt32 theLen=mBuffer.Length();
|
||||
PRUint32 theLen=mBuffer.Length();
|
||||
|
||||
mBuffer.Append(aBuffer);
|
||||
mTotalRead+=aBuffer.Length();
|
||||
|
@ -279,7 +279,7 @@ PRBool nsScanner::Append(const nsString& aBuffer) {
|
|||
*/
|
||||
PRBool nsScanner::Append(const char* aBuffer, PRUint32 aLen){
|
||||
|
||||
PRInt32 theLen=mBuffer.Length();
|
||||
PRUint32 theLen=mBuffer.Length();
|
||||
|
||||
if(mUnicodeDecoder) {
|
||||
PRInt32 unicharBufLen = 0;
|
||||
|
@ -345,7 +345,7 @@ PRBool nsScanner::Append(const PRUnichar* aBuffer, PRUint32 aLen){
|
|||
CBufDescriptor theDesc(aBuffer,PR_TRUE, aLen+1,aLen);
|
||||
nsAutoString theBuffer(theDesc);
|
||||
|
||||
PRInt32 theLen=mBuffer.Length();
|
||||
PRUint32 theLen=mBuffer.Length();
|
||||
mBuffer.Append(theBuffer);
|
||||
mTotalRead+=aLen;
|
||||
|
||||
|
|
|
@ -137,8 +137,9 @@ nsresult CToken::Consume(PRUnichar aChar,nsScanner& aScanner,PRInt32 aMode) {
|
|||
*/
|
||||
void CToken::DebugDumpToken(nsOutputStream& anOutputStream) {
|
||||
anOutputStream << "[" << GetClassName() << "] ";
|
||||
int i=0;
|
||||
for(i=0;i<mTextValue.Length();i++){
|
||||
PRUint32 i=0;
|
||||
PRUint32 theLen=mTextValue.Length();
|
||||
for(i=0;i<theLen;i++){
|
||||
anOutputStream << char(mTextValue.CharAt(i));
|
||||
}
|
||||
anOutputStream << " TypeID: " << mTypeID << " AttrCount: " << mAttrCount << nsEndl;
|
||||
|
|
|
@ -93,7 +93,6 @@ CParserContext::CParserContext(const CParserContext &aContext) : mMimeType() {
|
|||
mStreamListenerState=aContext.mStreamListenerState;
|
||||
mMultipart=aContext.mMultipart;
|
||||
mContextType=aContext.mContextType;
|
||||
mCopyUnused;
|
||||
mChannel=aContext.mChannel;
|
||||
mParserCommand=aContext.mParserCommand;
|
||||
SetMimeType(aContext.mMimeType);
|
||||
|
|
|
@ -1039,7 +1039,6 @@ CObserverService::~CObserverService() {
|
|||
}
|
||||
|
||||
nsObserverTopic* CObserverService::GetTopic(const nsString& aTopic) {
|
||||
PRInt32 theSize=mTopics.GetSize();
|
||||
PRInt32 theIndex=0;
|
||||
nsObserverTopic *theTopic=(nsObserverTopic*)mTopics.ObjectAt(theIndex++);
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@ void Initialize(eHTMLTags aTag,
|
|||
int aInclusionBits,
|
||||
int aExclusionBits,
|
||||
int aSpecialProperties,
|
||||
int aPropagateRange,
|
||||
PRUint32 aPropagateRange,
|
||||
TagList* aSpecialParents,
|
||||
TagList* aSpecialKids,
|
||||
eHTMLTags aSkipTarget
|
||||
|
|
|
@ -200,7 +200,7 @@ struct nsHTMLElement {
|
|||
int mInclusionBits; //defines parental and containment rules
|
||||
int mExclusionBits; //defines things you CANNOT contain
|
||||
int mSpecialProperties; //used for various special purposes...
|
||||
int mPropagateRange; //tells us how far a parent is willing to prop. badly formed children
|
||||
PRUint32 mPropagateRange; //tells us how far a parent is willing to prop. badly formed children
|
||||
TagList* mSpecialParents; //These are the special tags that contain this tag (directly)
|
||||
TagList* mSpecialKids; //These are the extra things you can contain
|
||||
eHTMLTags mSkipTarget; //If set, then we skip all content until this tag is seen
|
||||
|
|
|
@ -1010,7 +1010,9 @@ PRBool nsHTMLContentSinkStream::HasLongLines(const nsString& text)
|
|||
{
|
||||
const PRInt32 longLineLen = 128;
|
||||
nsString str = text;
|
||||
for (PRInt32 start = 0; start < text.Length(); )
|
||||
PRUint32 start=0;
|
||||
PRUint32 theLen=text.Length();
|
||||
for (start = 0; start < theLen; )
|
||||
{
|
||||
PRInt32 eol = text.FindChar('\n', PR_FALSE, start);
|
||||
if (eol < 0) eol = text.Length();
|
||||
|
|
|
@ -401,14 +401,6 @@ PRBool nsHTMLToTXTSinkStream::DoOutput()
|
|||
return mDoFragment || inBody;
|
||||
}
|
||||
|
||||
nsAutoString
|
||||
Spaces(PRInt32 count)
|
||||
{
|
||||
nsAutoString result;
|
||||
while (result.Length() < count)
|
||||
result += ' ';
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is used to a general container.
|
||||
|
@ -818,7 +810,7 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode)
|
|||
|
||||
// Make a line of dashes as wide as the wrap width
|
||||
nsAutoString line;
|
||||
int width = (mWrapColumn > 0 ? mWrapColumn : 25);
|
||||
PRUint32 width = (mWrapColumn > 0 ? mWrapColumn : 25);
|
||||
while (line.Length() < width)
|
||||
line += '-';
|
||||
Write(line);
|
||||
|
|
|
@ -56,7 +56,7 @@ class nsIURI;
|
|||
enum eParserCommands {
|
||||
eViewNormal,
|
||||
eViewSource,
|
||||
eViewErrors,
|
||||
eViewErrors
|
||||
};
|
||||
|
||||
enum eCRCQuality {
|
||||
|
|
|
@ -257,7 +257,7 @@ PRBool nsScanner::Insert(const nsString& aBuffer) {
|
|||
*/
|
||||
PRBool nsScanner::Append(const nsString& aBuffer) {
|
||||
|
||||
PRInt32 theLen=mBuffer.Length();
|
||||
PRUint32 theLen=mBuffer.Length();
|
||||
|
||||
mBuffer.Append(aBuffer);
|
||||
mTotalRead+=aBuffer.Length();
|
||||
|
@ -279,7 +279,7 @@ PRBool nsScanner::Append(const nsString& aBuffer) {
|
|||
*/
|
||||
PRBool nsScanner::Append(const char* aBuffer, PRUint32 aLen){
|
||||
|
||||
PRInt32 theLen=mBuffer.Length();
|
||||
PRUint32 theLen=mBuffer.Length();
|
||||
|
||||
if(mUnicodeDecoder) {
|
||||
PRInt32 unicharBufLen = 0;
|
||||
|
@ -345,7 +345,7 @@ PRBool nsScanner::Append(const PRUnichar* aBuffer, PRUint32 aLen){
|
|||
CBufDescriptor theDesc(aBuffer,PR_TRUE, aLen+1,aLen);
|
||||
nsAutoString theBuffer(theDesc);
|
||||
|
||||
PRInt32 theLen=mBuffer.Length();
|
||||
PRUint32 theLen=mBuffer.Length();
|
||||
mBuffer.Append(theBuffer);
|
||||
mTotalRead+=aLen;
|
||||
|
||||
|
|
|
@ -137,8 +137,9 @@ nsresult CToken::Consume(PRUnichar aChar,nsScanner& aScanner,PRInt32 aMode) {
|
|||
*/
|
||||
void CToken::DebugDumpToken(nsOutputStream& anOutputStream) {
|
||||
anOutputStream << "[" << GetClassName() << "] ";
|
||||
int i=0;
|
||||
for(i=0;i<mTextValue.Length();i++){
|
||||
PRUint32 i=0;
|
||||
PRUint32 theLen=mTextValue.Length();
|
||||
for(i=0;i<theLen;i++){
|
||||
anOutputStream << char(mTextValue.CharAt(i));
|
||||
}
|
||||
anOutputStream << " TypeID: " << mTypeID << " AttrCount: " << mAttrCount << nsEndl;
|
||||
|
|
Загрузка…
Ссылка в новой задаче