From 29bade6bcbc496b08438f8a5f569cfa4350cd129 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Mon, 26 Oct 1998 17:27:35 +0000 Subject: [PATCH] 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 --- mozilla/layout/generic/nsTextTransformer.cpp | 2 +- mozilla/layout/html/base/src/nsTextTransformer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/generic/nsTextTransformer.cpp b/mozilla/layout/generic/nsTextTransformer.cpp index e8685c3265d..d929f22c2c6 100644 --- a/mozilla/layout/generic/nsTextTransformer.cpp +++ b/mozilla/layout/generic/nsTextTransformer.cpp @@ -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; diff --git a/mozilla/layout/html/base/src/nsTextTransformer.cpp b/mozilla/layout/html/base/src/nsTextTransformer.cpp index e8685c3265d..d929f22c2c6 100644 --- a/mozilla/layout/html/base/src/nsTextTransformer.cpp +++ b/mozilla/layout/html/base/src/nsTextTransformer.cpp @@ -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;