mirror of
https://github.com/mappu/miqt.git
synced 2025-04-27 23:50:22 +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(`
|
ret.WriteString(`
|
||||||
type ` + goClassName + ` struct {
|
type ` + goClassName + ` struct {
|
||||||
h *C.` + goClassName + `
|
h *C.` + goClassName + `
|
||||||
isSubclass bool
|
|
||||||
`)
|
`)
|
||||||
|
|
||||||
// Embed all inherited types to directly allow calling inherited methods
|
// Embed all inherited types to directly allow calling inherited methods
|
||||||
@ -886,9 +885,7 @@ import "C"
|
|||||||
// Call Cgo constructor
|
// Call Cgo constructor
|
||||||
|
|
||||||
ret.WriteString(`
|
ret.WriteString(`
|
||||||
ret := new` + goClassName + `(C.` + goClassName + `_new` + maybeSuffix(i) + `(` + forwarding + `))
|
return new` + goClassName + `(C.` + goClassName + `_new` + maybeSuffix(i) + `(` + forwarding + `))
|
||||||
ret.isSubclass = true
|
|
||||||
return ret
|
|
||||||
}
|
}
|
||||||
|
|
||||||
`)
|
`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user