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:
@@ -201,7 +201,7 @@ HTMLOptionsCollection::GetSelectedIndex(int32_t* aSelectedIndex)
|
||||
{
|
||||
ErrorResult rv;
|
||||
*aSelectedIndex = GetSelectedIndex(rv);
|
||||
return rv.ErrorCode();
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
void
|
||||
@@ -221,7 +221,7 @@ HTMLOptionsCollection::SetSelectedIndex(int32_t aSelectedIndex)
|
||||
{
|
||||
ErrorResult rv;
|
||||
SetSelectedIndex(aSelectedIndex, rv);
|
||||
return rv.ErrorCode();
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
@@ -371,7 +371,7 @@ HTMLOptionsCollection::Remove(int32_t aIndex)
|
||||
{
|
||||
ErrorResult rv;
|
||||
Remove(aIndex, rv);
|
||||
return rv.ErrorCode();
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
||||
Reference in New Issue
Block a user