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

@@ -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