On Tue, Oct 2, 2018 at 9:33 AM Bobby Holley <bobbyhol...@gmail.com> wrote:
> This is awesome - great papercut fix. Thanks Andrew! > > Any chance of fixing it for RefPtr too? > That should already work: https://searchfox.org/mozilla-central/rev/6ddb5fb144993fb5de044e2e8d900d7643b98a4d/mfbt/RefPtr.h#142 > 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