mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
Don't do the second lookup if the name was already canonical. (#171502,
2005-03-25 Matthias Clasen <mclasen@redhat.com> * gparam.c (param_spec_ht_lookup): Don't do the second lookup if the name was already canonical. (#171502, Morten Welinder)
This commit is contained in:
parent
6e51f47e13
commit
45dc8b5c9a
@ -1,3 +1,9 @@
|
||||
2005-03-25 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gparam.c (param_spec_ht_lookup): Don't do the second
|
||||
lookup if the name was already canonical. (#171502, Morten
|
||||
Welinder)
|
||||
|
||||
Tue Mar 22 14:15:23 2005 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gparam.c (g_param_spec_internal): cast away any constness on
|
||||
|
@ -739,7 +739,7 @@ param_spec_ht_lookup (GHashTable *hash_table,
|
||||
else
|
||||
pspec = g_hash_table_lookup (hash_table, &key);
|
||||
|
||||
if (!pspec)
|
||||
if (!pspec && !is_canonical (param_name))
|
||||
{
|
||||
/* try canonicalized form */
|
||||
key.name = g_strdup (param_name);
|
||||
|
Loading…
Reference in New Issue
Block a user