mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-31 21:21:08 +00:00
Use computed word-len not out parameter that is unset at the time of usage
This commit is contained in:
parent
b987962daf
commit
a5b11a0e33
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user