Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv

This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
This commit is contained in:
Boris Zbarsky
2015-04-27 09:18:51 -04:00
parent 861fe27450
commit 789a3bf96e
91 changed files with 442 additions and 442 deletions

View File

@@ -662,7 +662,7 @@ HTMLSelectElement::Add(nsIDOMHTMLElement* aElement,
dataType == nsIDataType::VTYPE_VOID) {
ErrorResult error;
Add(*htmlElement, (nsGenericHTMLElement*)nullptr, error);
return error.ErrorCode();
return error.StealNSResult();
}
nsCOMPtr<nsISupports> supports;
@@ -678,7 +678,7 @@ HTMLSelectElement::Add(nsIDOMHTMLElement* aElement,
ErrorResult error;
Add(*htmlElement, beforeHTMLElement, error);
return error.ErrorCode();
return error.StealNSResult();
}
// otherwise, whether aBefore is long
@@ -687,7 +687,7 @@ HTMLSelectElement::Add(nsIDOMHTMLElement* aElement,
ErrorResult error;
Add(*htmlElement, index, error);
return error.ErrorCode();
return error.StealNSResult();
}
NS_IMETHODIMP
@@ -736,7 +736,7 @@ HTMLSelectElement::SetLength(uint32_t aLength)
{
ErrorResult rv;
SetLength(aLength, rv);
return rv.ErrorCode();
return rv.StealNSResult();
}
void