Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions glib/go_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func RegisterGoType(name string, goObject interface{}, extends Extendable, inter
// Register class data if the object implements a GoObjectSubclass
var cd *classData
if object, ok := goObject.(GoObjectSubclass); ok {
cd := &classData{
cd = &classData{
elem: object,
ext: extends,
}
Expand All @@ -201,7 +201,7 @@ func RegisterGoType(name string, goObject interface{}, extends Extendable, inter
)

// Add interfaces if the go object implements a GoObjectSubclass
if _, ok := goObject.(GoObjectSubclass); ok {
if cd != nil {
for _, iface := range interfaces {
gofuncPtr := gopointer.Save(&interfaceData{
iface: iface,
Expand Down