diff options
author | Benjamin Otte <otte@gnome.org> | 2009-12-20 14:55:00 +0100 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2010-01-03 10:46:02 -0500 |
commit | 7e5fd868a281ab64d9c212c53f7481451767a1fc (patch) | |
tree | 3b90e985793a52a36126a5cfd9bc847d70d04de2 /libsoup/soup-proxy-resolver.c | |
parent | c9b033358d0fe7611989f81bb22ec43d38e72472 (diff) | |
download | libsoup-7e5fd868a281ab64d9c212c53f7481451767a1fc.tar.gz |
Use g_type_is_a() in ugly hack.
It's much faster and actually works reliably.
Diffstat (limited to 'libsoup/soup-proxy-resolver.c')
-rw-r--r-- | libsoup/soup-proxy-resolver.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libsoup/soup-proxy-resolver.c b/libsoup/soup-proxy-resolver.c index 33a908c0..37a3b19b 100644 --- a/libsoup/soup-proxy-resolver.c +++ b/libsoup/soup-proxy-resolver.c @@ -44,16 +44,14 @@ static void proxy_resolver_interface_check (gpointer func_data, gpointer g_iface) { GTypeInterface *interface = g_iface; - GTypeClass *klass; if (interface->g_type != SOUP_TYPE_PROXY_RESOLVER) return; - klass = g_type_class_peek (interface->g_instance_type); /* If the class hasn't already declared that it implements * SoupProxyURIResolver, add our own compat implementation. */ - if (!g_type_interface_peek (klass, SOUP_TYPE_PROXY_URI_RESOLVER)) { + if (!g_type_is_a (interface->g_instance_type, SOUP_TYPE_PROXY_URI_RESOLVER)) { const GInterfaceInfo uri_resolver_interface_info = { (GInterfaceInitFunc) soup_proxy_resolver_uri_resolver_interface_init, NULL, NULL }; |