genbindings: fix missing this.h in forwarded calls from go

This commit is contained in:
mappu 2024-08-10 10:33:12 +12:00
parent 76f4323676
commit 91c2e0fa9b
1 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,9 @@ func emitParametersGo(params []CppParameter) string {
}
func emitParametersGo2CABIForwarding(m CppMethod) (preamble string, fowarding string) {
tmp := make([]string, 0, len(m.Parameters))
tmp := make([]string, 0, len(m.Parameters)+2)
tmp = append(tmp, "this.h")
for _, p := range m.Parameters {
if p.ParameterType == "QString" {