Bug 1249685 - Use more nsCOMPtrs for stack variables in DOM code. r=smaug

This commit is contained in:
Andrew McCreight
2016-02-23 16:23:43 -08:00
parent dac9f71d37
commit 8a89aeb600
4 changed files with 6 additions and 6 deletions

View File

@@ -521,8 +521,8 @@ HTMLTableElement::InsertRow(int32_t aIndex, ErrorResult& aError)
refIndex = rowCount - 1;
}
Element* refRow = rows->Item(refIndex);
nsINode* parent = refRow->GetParentNode();
RefPtr<Element> refRow = rows->Item(refIndex);
nsCOMPtr<nsINode> parent = refRow->GetParentNode();
// create the row
RefPtr<mozilla::dom::NodeInfo> nodeInfo;