Bug 846955 - Codegen Argument definitions using .define() in ClassDestructor::define. r=bz
authorAndrew McCreight <amccreight@mozilla.com>
Fri, 01 Mar 2013 16:32:24 -0800
changeset 130016 1d0f2cba284af9bde2a79ff3da0b57a06bc93a73
parent 130015 1d5475ec3831b418056acdeb0f3a842616b21e8d
child 130017 b6fe70978ee5011e6b0d3db3daf0e97af76a246c
push idunknown
push userunknown
push dateunknown
reviewersbz
bugs846955
milestone22.0a1
Bug 846955 - Codegen Argument definitions using .define() in ClassDestructor::define. r=bz
dom/bindings/Codegen.py
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -5429,17 +5429,17 @@ class ClassConstructor(ClassItem):
                   'className': cgClass.getNameString(),
                   'args': args,
                   'body': body })
 
     def define(self, cgClass):
         if self.bodyInHeader:
             return ''
 
-        args = ', '.join([str(a) for a in self.args])
+        args = ', '.join([a.define() for a in self.args])
 
         body = '  ' + self.getBody()
         body = '\n' + stripTrailingWhitespace(body.replace('\n', '\n  '))
         if len(body) > 0:
             body += '\n'
 
         return string.Template("""${decorators}
 ${className}::${className}(${args})${initializationList}