This is awesome - great papercut fix. Thanks Andrew!

Any chance of fixing it for RefPtr too?

On Tue, Oct 2, 2018 at 9:30 AM Andrew McCreight <amccrei...@mozilla.com>
wrote:

> I've landed bug 1494765, which allows you to do assignments between
> nsCOMPtrs for classes that are related by subtyping.
>
> For instance:
>
> class A { ... ];
> class B : public A { ... };
>
> nsCOMPtr<B> b = ...;
> nsCOMPtr<A> a = b; // this works now
>
> This is a step towards bug 1493226, which is going to statically ban
> trivial do_QueryInterface calls like this:
>
> nsCOMPtr<A> a2 = do_QueryInterface(b);
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to