From 0eea29e86de7ac54e734f74ab557ca7719e6c2b1 Mon Sep 17 00:00:00 2001 From: "rickg%netscape.com" Date: Tue, 23 Mar 1999 00:28:36 +0000 Subject: [PATCH] removed unsightly warnings from string classes git-svn-id: svn://10.0.0.236/trunk@24751 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/base/src/bufferRoutines.h | 14 +++++++------- mozilla/base/src/nsString.cpp | 4 ++-- mozilla/base/src/nsString2.cpp | 6 +++--- mozilla/string/obsolete/nsString.cpp | 4 ++-- mozilla/string/obsolete/nsString2.cpp | 6 +++--- mozilla/xpcom/ds/bufferRoutines.h | 14 +++++++------- mozilla/xpcom/ds/nsString.cpp | 4 ++-- mozilla/xpcom/ds/nsString2.cpp | 6 +++--- mozilla/xpcom/string/obsolete/nsString.cpp | 4 ++-- mozilla/xpcom/string/obsolete/nsString2.cpp | 6 +++--- 10 files changed, 34 insertions(+), 34 deletions(-) diff --git a/mozilla/base/src/bufferRoutines.h b/mozilla/base/src/bufferRoutines.h index 0d8104c724b..7c7b7668b49 100644 --- a/mozilla/base/src/bufferRoutines.h +++ b/mozilla/base/src/bufferRoutines.h @@ -57,7 +57,7 @@ inline PRUnichar GetCharAt(const char* aString,PRUint32 anIndex) { */ void ShiftCharsLeft(char* aDest,PRUint32 aLength,PRUint32 anOffset,PRUint32 aCount) { PRUint32 theMax=aLength-anOffset; - PRUint32 theLength=(theMaxRelease(); + gCaseConv->Release(); gCaseConv = NULL; } return NS_OK; @@ -742,7 +742,7 @@ PRInt32 nsString::ToInteger(PRInt32* aErrorCode,PRInt32 aRadix) const { PRUnichar* cp = (-1==decPt) ? mStr + mLength-1 : mStr+decPt-1; char digit=0; PRUnichar theChar; - PRInt32 theShift=0; +// PRInt32 theShift=0; PRInt32 theMult=1; *aErrorCode = (0Release(); + gCaseConv->Release(); gCaseConv = NULL; } return NS_OK; @@ -284,7 +284,7 @@ void nsString2::SetCapacity(PRUint32 aLength) { *********************************************************************/ -static char gChar=0; +//static char gChar=0; /** * @@ -668,7 +668,7 @@ PRInt32 nsString2::ToInteger(PRInt32* anErrorCode,PRUint32 aRadix) const { char* cp = (kNotFound==decPt) ? theString.mStr.mCharBuf + theString.mLength-1 : theString.mStr.mCharBuf+decPt-1; char digit=0; char theChar; - PRInt32 theShift=0; +// PRInt32 theShift=0; PRInt32 theMult=1; *anErrorCode = (0Release(); + gCaseConv->Release(); gCaseConv = NULL; } return NS_OK; @@ -742,7 +742,7 @@ PRInt32 nsString::ToInteger(PRInt32* aErrorCode,PRInt32 aRadix) const { PRUnichar* cp = (-1==decPt) ? mStr + mLength-1 : mStr+decPt-1; char digit=0; PRUnichar theChar; - PRInt32 theShift=0; +// PRInt32 theShift=0; PRInt32 theMult=1; *aErrorCode = (0Release(); + gCaseConv->Release(); gCaseConv = NULL; } return NS_OK; @@ -284,7 +284,7 @@ void nsString2::SetCapacity(PRUint32 aLength) { *********************************************************************/ -static char gChar=0; +//static char gChar=0; /** * @@ -668,7 +668,7 @@ PRInt32 nsString2::ToInteger(PRInt32* anErrorCode,PRUint32 aRadix) const { char* cp = (kNotFound==decPt) ? theString.mStr.mCharBuf + theString.mLength-1 : theString.mStr.mCharBuf+decPt-1; char digit=0; char theChar; - PRInt32 theShift=0; +// PRInt32 theShift=0; PRInt32 theMult=1; *anErrorCode = (0Release(); + gCaseConv->Release(); gCaseConv = NULL; } return NS_OK; @@ -742,7 +742,7 @@ PRInt32 nsString::ToInteger(PRInt32* aErrorCode,PRInt32 aRadix) const { PRUnichar* cp = (-1==decPt) ? mStr + mLength-1 : mStr+decPt-1; char digit=0; PRUnichar theChar; - PRInt32 theShift=0; +// PRInt32 theShift=0; PRInt32 theMult=1; *aErrorCode = (0Release(); + gCaseConv->Release(); gCaseConv = NULL; } return NS_OK; @@ -284,7 +284,7 @@ void nsString2::SetCapacity(PRUint32 aLength) { *********************************************************************/ -static char gChar=0; +//static char gChar=0; /** * @@ -668,7 +668,7 @@ PRInt32 nsString2::ToInteger(PRInt32* anErrorCode,PRUint32 aRadix) const { char* cp = (kNotFound==decPt) ? theString.mStr.mCharBuf + theString.mLength-1 : theString.mStr.mCharBuf+decPt-1; char digit=0; char theChar; - PRInt32 theShift=0; +// PRInt32 theShift=0; PRInt32 theMult=1; *anErrorCode = (0Release(); + gCaseConv->Release(); gCaseConv = NULL; } return NS_OK; @@ -742,7 +742,7 @@ PRInt32 nsString::ToInteger(PRInt32* aErrorCode,PRInt32 aRadix) const { PRUnichar* cp = (-1==decPt) ? mStr + mLength-1 : mStr+decPt-1; char digit=0; PRUnichar theChar; - PRInt32 theShift=0; +// PRInt32 theShift=0; PRInt32 theMult=1; *aErrorCode = (0Release(); + gCaseConv->Release(); gCaseConv = NULL; } return NS_OK; @@ -284,7 +284,7 @@ void nsString2::SetCapacity(PRUint32 aLength) { *********************************************************************/ -static char gChar=0; +//static char gChar=0; /** * @@ -668,7 +668,7 @@ PRInt32 nsString2::ToInteger(PRInt32* anErrorCode,PRUint32 aRadix) const { char* cp = (kNotFound==decPt) ? theString.mStr.mCharBuf + theString.mLength-1 : theString.mStr.mCharBuf+decPt-1; char digit=0; char theChar; - PRInt32 theShift=0; +// PRInt32 theShift=0; PRInt32 theMult=1; *anErrorCode = (0