summaryrefslogtreecommitdiff
path: root/src/cairo-font-face.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-11-08 00:06:38 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-11-13 11:36:42 +0000
commitcebc84f367a81eedebf7ab0b6b082691923c3ef7 (patch)
treed96b12de20d6351faa052c8edbd22a008ac10719 /src/cairo-font-face.c
parent5f0aa274459fa182d1f82d393224c46ce2b12785 (diff)
downloadcairo-cebc84f367a81eedebf7ab0b6b082691923c3ef7.tar.gz
[hash] Separate out unique patterns of iterating over the table.
Avoid unnecessary conditionals for the hotpaths by separating out the iteration over the elements into their distinct modes.
Diffstat (limited to 'src/cairo-font-face.c')
-rw-r--r--src/cairo-font-face.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-font-face.c b/src/cairo-font-face.c
index f9a838ae6..eb4921e3b 100644
--- a/src/cairo-font-face.c
+++ b/src/cairo-font-face.c
@@ -511,7 +511,7 @@ cairo_toy_font_face_create (const char *family,
}
/* remove the bad font from the hash table */
- _cairo_hash_table_remove (hash_table, &key.base.hash_entry);
+ _cairo_hash_table_remove (hash_table, &font_face->base.hash_entry);
font_face->base.hash_entry.hash = 0;
}