Bug 1145631 - Part 5: Replace MOZ_FINAL with final in the AccEventGen codegen; r=froydnj
authorEhsan Akhgari <ehsan@mozilla.com>
Sat, 21 Mar 2015 12:28:46 -0400
changeset 265237 79371ae69603cf77e169eb8d1b375b1554dfe6cb
parent 265236 bd5245b8886da9919738b43a5ad02b38b4188e3c
child 265238 7c491d4a0e066f85c33ccbcdb907c3158b059353
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1145631
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1145631 - Part 5: Replace MOZ_FINAL with final in the AccEventGen codegen; r=froydnj
accessible/xpcom/AccEventGen.py
--- a/accessible/xpcom/AccEventGen.py
+++ b/accessible/xpcom/AccEventGen.py
@@ -56,17 +56,17 @@ def print_header_file(fd, conf):
         fd.write("#include \"nsIAccessible%s.h\"\n" % e)
     for e in conf.simple_events:
         idl, idl_path = loadEventIDL(p, options.incdirs, e)
         idl_paths.add(idl_path)
         for iface in filter(lambda p: p.kind == "interface", idl.productions):
             classname = ("xpcAcc%s" % e)
             baseinterfaces = interfaces(iface)
 
-            fd.write("\nclass %s MOZ_FINAL : public %s\n" % (classname, iface.name))
+            fd.write("\nclass %s final : public %s\n" % (classname, iface.name))
             fd.write("{\n")
             fd.write("public:\n")
 
             attributes = allAttributes(iface)
             args = map(writeAttributeParams, attributes)
             fd.write("  %s(%s) :\n" % (classname, ", ".join(args)))
 
             initializers = []