Ms2ger wrote:
On 12/20/2013 10:55 AM, Neil wrote:
I thought that it was pretty clear which smart pointer to use:
That makes it quite clear it isn't clear:
nsCOMPtr - interfaces
nsRefPtr - concrete types
RefPtr - code imported from WebKit
HTH
MXR claims we have three types named RefPtr. One is indeed used by some
yarr code imported from WebKit. There's one in cairo. And then there's
one in MFBT.
What I find confusing, given the number of uses of RefPtr, is that there
appear to be very few includes of RefPtr.h itself, although
MacIOSurface.h manages to include it twice yet doesn't even use RefPtr!
--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform