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:
@@ -121,7 +121,7 @@ HTMLScriptElement::SetText(const nsAString& aValue)
|
||||
{
|
||||
ErrorResult rv;
|
||||
SetText(aValue, rv);
|
||||
return rv.ErrorCode();
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
void
|
||||
@@ -198,7 +198,7 @@ HTMLScriptElement::SetAsync(bool aValue)
|
||||
{
|
||||
ErrorResult rv;
|
||||
SetAsync(aValue, rv);
|
||||
return rv.ErrorCode();
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user