Bug 1028588 - Update AccEventGen.py to whitelist the dangerous public destructors that it generates - r=tbsaunde

This commit is contained in:
Benoit Jacob 2014-07-07 14:27:30 -04:00
parent f1d099b909
commit b369212fc9

View File

@ -81,6 +81,14 @@ def print_header_file(fd, conf):
fd.write(" %s\n" % attributeVariableTypeAndName(a))
fd.write("};\n\n")
fd.write("namespace mozilla {\n"
"template<>\n"
"struct HasDangerousPublicDestructor<%s>\n"
"{\n"
" static const bool value = true;\n"
"};\n"
"}\n" % classname)
fd.write("#endif\n")
def interfaceAttributeTypes(idl):