diff --git a/base/src/bufferRoutines.h b/base/src/bufferRoutines.h index 0d8104c724b0..7c7b7668b496 100644 --- a/base/src/bufferRoutines.h +++ b/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