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