Bug 1123323 - Ensure that xptiTypelibGuts cannot have a vtable; r=froydnj

This commit is contained in:
Ehsan Akhgari 2015-09-03 14:46:13 -04:00
parent 2389b6fdd3
commit 9869a058a8

View File

@ -10,6 +10,13 @@
using namespace mozilla;
// Ensure through static analysis that xptiTypelibGuts won't have a vtable.
template <class T>
class MOZ_NEEDS_NO_VTABLE_TYPE CheckNoVTable
{
};
CheckNoVTable<xptiTypelibGuts> gChecker;
// static
xptiTypelibGuts*
xptiTypelibGuts::Create(XPTHeader* aHeader)