mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 03:00:30 +00:00
fix script C++ const-ness problem (pedantic bustage)
This commit is contained in:
parent
1523e75eec
commit
160e6847ae
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user