gecko-dev/toolkit/components/windowwatcher
Andrew McCreight 5a1eb609f9 Bug 1493276 - Statically prevent CallQueryInterface to a base class r=froydnj
If a class A is derived from a class B, then an instance of A can be
converted to an instance of class B via a static cast, so QI is not
needed. QIs are slower than static casts.

TestCallTemplates seems to be testing that CallQueryInterface compiles
even if the first argument's class is only ambiguously castable to
nsISupports, so I changed the second argument to be a class unrelated
to the concrete class.

I also removed some useless null checks on the return value of new.

Differential Revision: https://phabricator.services.mozilla.com/D6838

--HG--
extra : moz-landing-system : lando
2018-09-27 14:59:55 +00:00
..
test Bug 1446940 part 1. Stop getting docshells from windows via getInterface in toolkit. r=gijs 2018-08-01 13:07:09 -04:00
moz.build Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium 2017-12-07 22:09:15 +01:00
nsAutoWindowStateHelper.cpp Bug 1455052 part 13. Remove nsIDOMEvent. r=masayuki 2018-04-20 12:55:31 -04:00
nsAutoWindowStateHelper.h
nsDialogParamBlock.cpp
nsDialogParamBlock.h
nsIDialogParamBlock.idl
nsIPromptFactory.idl
nsIPromptService.idl
nsIWindowWatcher.idl
nsPIPromptService.idl
nsPIWindowWatcher.idl Bug 1472087 - deCOMtaminate nsIDocShellLoadInfo; r=nika 2018-07-11 20:19:14 -07:00
nsPromptUtils.h
nsWindowWatcher.cpp Bug 1493276 - Statically prevent CallQueryInterface to a base class r=froydnj 2018-09-27 14:59:55 +00:00
nsWindowWatcher.h Bug 1472087 - deCOMtaminate nsIDocShellLoadInfo; r=nika 2018-07-11 20:19:14 -07:00