On 2014-08-12, 11:25 AM, L. David Baron wrote:
On Tuesday 2014-08-12 18:15 +0300, Aryeh Gregor wrote:
1) You can use the return value directly without assigning it to an
nsCOMPtr/nsRefPtr. For instance, pass it to a function that wants a
raw pointer, or compare it against a different value.
I consider this a disadvantage, as I pointed out in my previous
post. It removes one of the major safety features of nsCOMPtr.
I am also strongly against the removal of already_AddRefed because of
this. I am not convinced that we can rely on reviewers to enforce this.
Cheers,
Ehsan
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform