fix script C++ const-ness problem (pedantic bustage)

This commit is contained in:
alecf%netscape.com 1999-04-28 02:27:03 +00:00
parent 1523e75eec
commit 160e6847ae
2 changed files with 2 additions and 2 deletions

View File

@ -5647,7 +5647,7 @@ static PRBool NeedFirstLetterContinuation(nsIContent* aContent)
if (NS_SUCCEEDED(rv)) {
nsTextFragment* frags = nsnull;
PRInt32 numFrags = 0;
tc->GetText(frags, numFrags);
tc->GetText((const nsTextFragment*&)frags, numFrags);
PRInt32 flc = FirstLetterCount(frags, numFrags);
PRInt32 tl = TotalLength(frags, numFrags);
if (flc < tl) {

View File

@ -5647,7 +5647,7 @@ static PRBool NeedFirstLetterContinuation(nsIContent* aContent)
if (NS_SUCCEEDED(rv)) {
nsTextFragment* frags = nsnull;
PRInt32 numFrags = 0;
tc->GetText(frags, numFrags);
tc->GetText((const nsTextFragment*&)frags, numFrags);
PRInt32 flc = FirstLetterCount(frags, numFrags);
PRInt32 tl = TotalLength(frags, numFrags);
if (flc < tl) {