Indent the contents of obj_toString correctly.

This commit is contained in:
Ms2ger 2014-06-21 14:25:08 +02:00
parent eb4213f613
commit 504efb66fb

View file

@ -3706,12 +3706,12 @@ class CGDOMJSProxyHandler_obj_toString(CGAbstractExternMethod):
JSString* jsresult;
return xpc_qsStringToJsstring(cx, result, &jsresult) ? jsresult : NULL;"""
return """ "%s".to_c_str().with_ref(|s| {
_obj_toString(cx, s)
})""" % self.descriptor.name
return """"%s".to_c_str().with_ref(|s| {
_obj_toString(cx, s)
})""" % self.descriptor.name
def definition_body(self):
return CGGeneric(self.getBody())
return CGIndenter(CGGeneric(self.getBody()))
class CGAbstractClassHook(CGAbstractExternMethod):
"""