Use nsRefPtr in Element::InsertAdjacentTest

This commit is contained in:
trav90
2017-02-07 17:50:59 -06:00
committed by roytam1
parent d4cf0e4361
commit ceba0db26e
+1 -1
View File
@@ -3421,7 +3421,7 @@ void
Element::InsertAdjacentText(
const nsAString& aWhere, const nsAString& aData, ErrorResult& aError)
{
RefPtr<nsTextNode> textNode = OwnerDoc()->CreateTextNode(aData);
nsRefPtr<nsTextNode> textNode = OwnerDoc()->CreateTextNode(aData);
InsertAdjacent(aWhere, textNode, aError);
}