mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Auto merge of #5850 - nox:nullary-callbacks, r=jdm
<!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5850) <!-- Reviewable:end -->
This commit is contained in:
commit
92359c7b9a
2 changed files with 2 additions and 5 deletions
|
@ -4918,9 +4918,6 @@ class CGCallback(CGClass):
|
|||
args.append(Argument("ExceptionHandling", "aExceptionHandling",
|
||||
"ReportExceptions"))
|
||||
|
||||
args[0] = Argument(args[0].argType, args[0].name, args[0].default)
|
||||
method.args[2] = args[0]
|
||||
|
||||
# And now insert our template argument.
|
||||
argsWithoutThis = list(args)
|
||||
args.insert(0, Argument("JSRef<T>", "thisObj"))
|
||||
|
@ -5235,7 +5232,7 @@ class CallbackMethod(CallbackMember):
|
|||
replacements["argv"] = "argv.as_mut_ptr()"
|
||||
replacements["argc"] = "argc"
|
||||
else:
|
||||
replacements["argv"] = "nullptr"
|
||||
replacements["argv"] = "ptr::null_mut()"
|
||||
replacements["argc"] = "0"
|
||||
return string.Template("${getCallable}"
|
||||
"let ok = unsafe {\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue