Robert O'Callahan wrote:
On Mon, Jul 22, 2013 at 3:58 PM, L. David Baron <dba...@dbaron.org> wrote:
Is the idea here that nsRefPtr/nsCOMPtr/etc. would have move constructors, and
we'd just return them, and the move constructors plus return value
optimizations would take care of avoiding excess reference counting?
That, plus forget() returns a nsRefPtr.
Historically people used refptr.forget().get(); to get a raw addrefed
pointer. MXR suggests that we still have 72 uses like this. (But as an
interim stage I assume you could keep the addrefed wrapper type and
define a move constructor from it to refptr.)
--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform