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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user