Use computed word-len not out parameter that is unset at the time of usage

git-svn-id: svn://10.0.0.236/trunk@13449 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com 1998-10-26 17:27:35 +00:00
parent 138ffb41d2
commit 29bade6bcb
2 changed files with 2 additions and 2 deletions

View File

@ -365,7 +365,7 @@ nsTextTransformer::GetNextWord(PRBool aInWord,
if (!aInWord && !isWhitespace &&
(NS_STYLE_TEXT_TRANSFORM_CAPITALIZE == mTextTransform)) {
PRInt32 n = aWordLenResult;
PRInt32 n = wordLen;
PRUnichar* bp = mBuffer;
for (; --n >= 0; bp++) {
PRUnichar ch = *bp;

View File

@ -365,7 +365,7 @@ nsTextTransformer::GetNextWord(PRBool aInWord,
if (!aInWord && !isWhitespace &&
(NS_STYLE_TEXT_TRANSFORM_CAPITALIZE == mTextTransform)) {
PRInt32 n = aWordLenResult;
PRInt32 n = wordLen;
PRUnichar* bp = mBuffer;
for (; --n >= 0; bp++) {
PRUnichar ch = *bp;