forked from AuroraMiddleware/gtk
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:
parent
11d3582333
commit
a831f1fb11
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user