mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
gobject: fix typecasts via g_object_ref
Now that g_object_ref() propagates the parameter type to the return value, we need to cast to ensure the result is warning free. https://bugzilla.gnome.org/show_bug.cgi?id=790697
This commit is contained in:
committed by
Philip Withnall
parent
c26aab36db
commit
f44472e715
@@ -375,7 +375,7 @@ g_socket_address_connectable_enumerate (GSocketConnectable *connectable)
|
||||
GSocketAddressAddressEnumerator *sockaddr_enum;
|
||||
|
||||
sockaddr_enum = g_object_new (G_TYPE_SOCKET_ADDRESS_ADDRESS_ENUMERATOR, NULL);
|
||||
sockaddr_enum->sockaddr = g_object_ref (connectable);
|
||||
sockaddr_enum->sockaddr = g_object_ref (G_SOCKET_ADDRESS (connectable));
|
||||
|
||||
return (GSocketAddressEnumerator *)sockaddr_enum;
|
||||
}
|
||||
|
Reference in New Issue
Block a user