mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1028588 - Update AccEventGen.py to whitelist the dangerous public destructors that it generates - r=tbsaunde
This commit is contained in:
parent
f1d099b909
commit
b369212fc9
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user