зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1188180 - Fix possible uninitialized variable use; r=ehsan
This commit is contained in:
Родитель
80ea0a3e53
Коммит
6efc5f4b12
|
@ -5762,7 +5762,7 @@ nsHTMLEditRules::GetNodesForOperation(nsTArray<nsRefPtr<nsRange>>& aArrayOfRange
|
||||||
nsCOMPtr<nsIEditor> kungFuDeathGrip(mHTMLEditor);
|
nsCOMPtr<nsIEditor> kungFuDeathGrip(mHTMLEditor);
|
||||||
|
|
||||||
int32_t rangeCount = aArrayOfRanges.Length();
|
int32_t rangeCount = aArrayOfRanges.Length();
|
||||||
nsresult res;
|
nsresult res = NS_OK;
|
||||||
|
|
||||||
// Bust up any inlines that cross our range endpoints, but only if we are
|
// Bust up any inlines that cross our range endpoints, but only if we are
|
||||||
// allowed to touch content.
|
// allowed to touch content.
|
||||||
|
@ -5795,7 +5795,7 @@ nsHTMLEditRules::GetNodesForOperation(nsTArray<nsRefPtr<nsRange>>& aArrayOfRange
|
||||||
// Gather up a list of all the nodes
|
// Gather up a list of all the nodes
|
||||||
for (auto& range : aArrayOfRanges) {
|
for (auto& range : aArrayOfRanges) {
|
||||||
nsDOMSubtreeIterator iter;
|
nsDOMSubtreeIterator iter;
|
||||||
nsresult res = iter.Init(*range);
|
res = iter.Init(*range);
|
||||||
NS_ENSURE_SUCCESS(res, res);
|
NS_ENSURE_SUCCESS(res, res);
|
||||||
if (aOutArrayOfNodes.Length() == 0) {
|
if (aOutArrayOfNodes.Length() == 0) {
|
||||||
iter.AppendList(nsTrivialFunctor(), aOutArrayOfNodes);
|
iter.AppendList(nsTrivialFunctor(), aOutArrayOfNodes);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче