L. David Baron wrote:

On Friday 2014-03-07 01:32 +0000, Neil wrote:
I noticed a couple of places that queried for a concrete class which didn't 
have its own IID, which means that you end up querying for the base interface 
instead.
Does the solution we use for do_QueryFrame work here too, for making the 
compiler enforce this?

(See the typedef in NS_DECL_QUERYFRAME_TARGET and the static_assert in 
NS_QUERYFRAME_ENTRY (etc.) and in do_QueryFrame::operator Dest*.)
Unfortunately we don't have an equivalent of NS_DECL_QUERYFRAME_TARGET (NS_DECLARE_STATIC_IID_ACCESSOR doesn't get passed the class's own name).

--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to