Bug 1249685 - Use more nsCOMPtrs for stack variables in DOM code. r=smaug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user