This commit is contained in:
rickg%netscape.com 2000-03-25 05:38:11 +00:00
Родитель 49fc717592
Коммит 23735ae8a7
18 изменённых файлов: 26 добавлений и 40 удалений

Просмотреть файл

@ -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;