bug 513647: fixed a compil warning on nsHTMLContentSerializer::SerializeAttributes. r=Olli.Pettay, sr=bzbarsky

This commit is contained in:
Laurent Jouanneau 2009-09-01 16:31:05 +02:00
parent 3d60b7255e
commit 5428e94167
2 changed files with 13 additions and 13 deletions

View File

@ -103,12 +103,12 @@ nsHTMLContentSerializer::AppendDocumentStart(nsIDOMDocument *aDocument,
}
void
nsHTMLContentSerializer::SerializeAttributes(nsIContent* aContent,
nsIDOMElement *aOriginalElement,
nsAString& aTagPrefix,
const nsAString& aTagNamespaceURI,
nsIAtom* aTagName,
nsAString& aStr)
nsHTMLContentSerializer::SerializeHTMLAttributes(nsIContent* aContent,
nsIDOMElement *aOriginalElement,
nsAString& aTagPrefix,
const nsAString& aTagNamespaceURI,
nsIAtom* aTagName,
nsAString& aStr)
{
PRInt32 count = aContent->GetAttrCount();
if (!count)
@ -306,7 +306,7 @@ nsHTMLContentSerializer::AppendElementStart(nsIDOMElement *aElement,
// Even LI passed above have to go through this
// for serializing attributes other than "value".
nsAutoString dummyPrefix;
SerializeAttributes(content, aOriginalElement, dummyPrefix, EmptyString(), name, aStr);
SerializeHTMLAttributes(content, aOriginalElement, dummyPrefix, EmptyString(), name, aStr);
AppendToString(kGreaterThan, aStr);

View File

@ -68,12 +68,12 @@ class nsHTMLContentSerializer : public nsXHTMLContentSerializer {
nsAString& aStr);
protected:
virtual void SerializeAttributes(nsIContent* aContent,
nsIDOMElement *aOriginalElement,
nsAString& aTagPrefix,
const nsAString& aTagNamespaceURI,
nsIAtom* aTagName,
nsAString& aStr);
virtual void SerializeHTMLAttributes(nsIContent* aContent,
nsIDOMElement *aOriginalElement,
nsAString& aTagPrefix,
const nsAString& aTagNamespaceURI,
nsIAtom* aTagName,
nsAString& aStr);
};
nsresult