On 2015-08-02 11:21 AM, Boris Zbarsky wrote:
On 8/2/15 7:34 AM, Hubert Figuière wrote:
This is also part of why I'd suggest having an construction method that
will return a smart pointer - preventing the use of raw pointers.

Returning an already_AddRefed would prevent the use of raw pointers, but
would leak if the caller used "auto", right?

I filed bug 1192130 to catch this through static analysis.

_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to