mirror of
https://github.com/mappu/miqt.git
synced 2025-01-20 21:50:38 +00:00
genbindings: remove last use of isSubclass variable
This commit is contained in:
parent
3697849067
commit
5cce6739f5
@ -767,7 +767,6 @@ import "C"
|
||||
ret.WriteString(`
|
||||
type ` + goClassName + ` struct {
|
||||
h *C.` + goClassName + `
|
||||
isSubclass bool
|
||||
`)
|
||||
|
||||
// Embed all inherited types to directly allow calling inherited methods
|
||||
@ -886,9 +885,7 @@ import "C"
|
||||
// Call Cgo constructor
|
||||
|
||||
ret.WriteString(`
|
||||
ret := new` + goClassName + `(C.` + goClassName + `_new` + maybeSuffix(i) + `(` + forwarding + `))
|
||||
ret.isSubclass = true
|
||||
return ret
|
||||
return new` + goClassName + `(C.` + goClassName + `_new` + maybeSuffix(i) + `(` + forwarding + `))
|
||||
}
|
||||
|
||||
`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user