Remove trailing whitespace from the generated .cpp files.
authorMs2ger <ms2ger@gmail.com>
Sun, 12 Feb 2012 18:12:42 +0100
changeset 86763 e1bd74e88ad2d4b5e369113a633fe2ebc5fbbce9
parent 86762 b91d5bfbf6587600c194ce7c98adf945574e07ec
child 86764 389754ef0554763a7191cea2da15e1bf876a34f1
push id110
push userMs2ger@gmail.com
push dateSun, 12 Feb 2012 17:13:12 +0000
milestone13.0a1
Remove trailing whitespace from the generated .cpp files.
dom/bindings/Codegen.py
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -917,24 +917,24 @@ class PerSignatureMethodCall(PerSignatur
     def getArgv(self):
         return "argv" if len(self.arguments) > 0 else ""
     def getArgc(self):
         return "argc"
     def unwrap_arguments(self):
         requiredArgs = len(self.arguments)
         while requiredArgs and self.arguments[requiredArgs-1].optional:
             requiredArgs -= 1
-        argv = "jsval *argv = JS_ARGV(cx, vp);\n" if len(self.arguments) > 0 else ""
+        argv = "  JS::Value *argv = JS_ARGV(cx, vp);\n" if len(self.arguments) > 0 else ""
         return ("""
   // XXXbz is this the right place for this check?  Or should it be more
   // up-front somewhere, not per-signature?
   if (argc < %d) {
     return xpc_qsThrow(cx, NS_ERROR_XPC_NOT_ENOUGH_ARGS);
   }
-  %s""" % (requiredArgs, argv)) + PerSignatureCall.unwrap_arguments(self)
+%s""" % (requiredArgs, argv)) + PerSignatureCall.unwrap_arguments(self)
 
 class GetterSetterCall(PerSignatureCall):
     def __init__(self, returnType, arguments, nativeMethodName, descriptor,
                  attr, extendedAttributes):
         PerSignatureCall.__init__(self, returnType, arguments, nativeMethodName,
                                   descriptor, attr, extendedAttributes)
     def getArgv(self):
         return "vp"