Bug 678209 - Fix c++0x initializer list error found by clang. r=jonas

The aLength argument is used in

CharacterDataChangeInfo info = {
  PR_TRUE,
  oldLength,
  oldLength,
  aLength
};

and the last field of CharacterDataChangeInfo is a PRUint32, so
aLength should be one to for this to be valid c++0x.
This commit is contained in:
Rafael Ávila de Espíndola
2011-08-22 15:35:19 -04:00
parent a1a4395f73
commit 4f25c3f655
2 changed files with 6 additions and 6 deletions

View File

@@ -140,7 +140,7 @@ nsHtml5TreeOperation::~nsHtml5TreeOperation()
nsresult
nsHtml5TreeOperation::AppendTextToTextNode(const PRUnichar* aBuffer,
PRInt32 aLength,
PRUint32 aLength,
nsIContent* aTextNode,
nsHtml5TreeOpExecutor* aBuilder)
{
@@ -172,7 +172,7 @@ nsHtml5TreeOperation::AppendTextToTextNode(const PRUnichar* aBuffer,
nsresult
nsHtml5TreeOperation::AppendText(const PRUnichar* aBuffer,
PRInt32 aLength,
PRUint32 aLength,
nsIContent* aParent,
nsHtml5TreeOpExecutor* aBuilder)
{
@@ -496,7 +496,7 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
case eTreeOpAppendText: {
nsIContent* parent = *mOne.node;
PRUnichar* buffer = mTwo.unicharPtr;
PRInt32 length = mInt;
PRUint32 length = mInt;
return AppendText(buffer, length, parent, aBuilder);
}
case eTreeOpAppendIsindexPrompt: {
@@ -518,7 +518,7 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
case eTreeOpFosterParentText: {
nsIContent* stackParent = *mOne.node;
PRUnichar* buffer = mTwo.unicharPtr;
PRInt32 length = mInt;
PRUint32 length = mInt;
nsIContent* table = *mThree.node;
nsIContent* foster = table->GetParent();