css matcher: Avoid a redundant call

The sole caller passes an interned string, so we don't
need to call g_intern_string again.
This commit is contained in:
Matthias Clasen 2015-09-10 20:42:07 -04:00
parent 11d3582333
commit a831f1fb11

View File

@ -313,7 +313,8 @@ static gboolean
gtk_css_matcher_node_has_id (const GtkCssMatcher *matcher, gtk_css_matcher_node_has_id (const GtkCssMatcher *matcher,
const char *id) const char *id)
{ {
return gtk_css_node_get_id (matcher->node.node) == g_intern_string (id); /* assume all callers pass an interned string */
return gtk_css_node_get_id (matcher->node.node) == id;
} }
static gboolean static gboolean