gecko-dev/layout/build
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
..
moz.build Bug 1447924 - part 3: Rename nsTransactionStack to mozilla::TransactionStack r=m_kato 2018-03-22 23:30:48 +09:00
nsContentDLF.cpp Bug 1493276 - Statically prevent CallQueryInterface to a base class r=froydnj 2018-09-27 14:59:55 +00:00
nsContentDLF.h Bug 1492142 - Remove the XPCOM registrations for the document classes; r=baku 2018-09-18 11:22:23 -04:00
nsLayoutCID.h Bug 1492039 - Remove the XPCOM component registration for SessionStorageManager; r=baku 2018-09-18 09:42:43 -04:00
nsLayoutModule.cpp Bug 1492142 - Remove the XPCOM registrations for the document classes; r=baku 2018-09-18 11:22:23 -04:00
nsLayoutStatics.cpp Bug 1486370 - Change nsAutoCopyListener to a static class r=smaug 2018-08-30 07:36:23 +00:00
nsLayoutStatics.h Bug 1412346 part 5: (automated patch) Switch a bunch of C++ files in layout to use our standard mode lines. r=jfkthame 2017-10-27 10:33:53 -07:00