Bug 1301777 - Use nsCOMPtr for stack variables. r=mccr8

--HG--
extra : rebase_source : cdbc82c57f3904ea98d5392a9587351447496763
This commit is contained in:
Olli Pettay 2016-09-27 15:36:41 -04:00
Родитель 3014d2c1e7
Коммит 588f79ddd9
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -1765,7 +1765,8 @@ nsINode::Before(const Sequence<OwningNodeOrString>& aNodes,
return;
}
nsINode* viablePreviousSibling = FindViablePreviousSibling(*this, aNodes);
nsCOMPtr<nsINode> viablePreviousSibling =
FindViablePreviousSibling(*this, aNodes);
nsCOMPtr<nsINode> node =
ConvertNodesOrStringsIntoNode(aNodes, OwnerDoc(), aRv);
@ -1788,7 +1789,7 @@ nsINode::After(const Sequence<OwningNodeOrString>& aNodes,
return;
}
nsINode* viableNextSibling = FindViableNextSibling(*this, aNodes);
nsCOMPtr<nsINode> viableNextSibling = FindViableNextSibling(*this, aNodes);
nsCOMPtr<nsINode> node =
ConvertNodesOrStringsIntoNode(aNodes, OwnerDoc(), aRv);
@ -1808,7 +1809,7 @@ nsINode::ReplaceWith(const Sequence<OwningNodeOrString>& aNodes,
return;
}
nsINode* viableNextSibling = FindViableNextSibling(*this, aNodes);
nsCOMPtr<nsINode> viableNextSibling = FindViableNextSibling(*this, aNodes);
nsCOMPtr<nsINode> node =
ConvertNodesOrStringsIntoNode(aNodes, OwnerDoc(), aRv);