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

@@ -373,7 +373,7 @@ HTMLTextAreaElement::SetDefaultValue(const nsAString& aDefaultValue)
{
ErrorResult error;
SetDefaultValue(aDefaultValue, error);
return error.ErrorCode();
return error.StealNSResult();
}
void
@@ -632,7 +632,7 @@ HTMLTextAreaElement::GetControllers(nsIControllers** aResult)
*aResult = GetControllers(error);
NS_IF_ADDREF(*aResult);
return error.ErrorCode();
return error.StealNSResult();
}
uint32_t
@@ -659,7 +659,7 @@ HTMLTextAreaElement::GetSelectionStart(int32_t *aSelectionStart)
ErrorResult error;
*aSelectionStart = GetSelectionStart(error);
return error.ErrorCode();
return error.StealNSResult();
}
uint32_t
@@ -682,7 +682,7 @@ HTMLTextAreaElement::SetSelectionStart(int32_t aSelectionStart)
{
ErrorResult error;
SetSelectionStart(aSelectionStart, error);
return error.ErrorCode();
return error.StealNSResult();
}
void
@@ -722,7 +722,7 @@ HTMLTextAreaElement::GetSelectionEnd(int32_t *aSelectionEnd)
ErrorResult error;
*aSelectionEnd = GetSelectionEnd(error);
return error.ErrorCode();
return error.StealNSResult();
}
uint32_t
@@ -745,7 +745,7 @@ HTMLTextAreaElement::SetSelectionEnd(int32_t aSelectionEnd)
{
ErrorResult error;
SetSelectionEnd(aSelectionEnd, error);
return error.ErrorCode();
return error.StealNSResult();
}
void
@@ -810,7 +810,7 @@ HTMLTextAreaElement::GetSelectionDirection(nsAString& aDirection)
{
ErrorResult error;
GetSelectionDirection(aDirection, error);
return error.ErrorCode();
return error.StealNSResult();
}
void
@@ -841,7 +841,7 @@ HTMLTextAreaElement::SetSelectionDirection(const nsAString& aDirection)
{
ErrorResult error;
SetSelectionDirection(aDirection, error);
return error.ErrorCode();
return error.StealNSResult();
}
void
@@ -877,7 +877,7 @@ HTMLTextAreaElement::SetSelectionRange(int32_t aSelectionStart,
Optional<nsAString> dir;
dir = &aDirection;
SetSelectionRange(aSelectionStart, aSelectionEnd, dir, error);
return error.ErrorCode();
return error.StealNSResult();
}
void