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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user