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:
Matthias Clasen 2005-03-26 03:00:44 +00:00 committed by Matthias Clasen
parent 6e51f47e13
commit 45dc8b5c9a
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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);