Commit ec819242 authored by Timm Bäder's avatar Timm Bäder 👎 Committed by Daniel Boles

cssnodestylecache: Use const pointer in lookup

parent 4b38a39c
......@@ -318,7 +318,7 @@ lookup_in_global_parent_cache (GtkCssNode *node,
g_assert (node->cache == NULL);
node->cache = gtk_css_node_style_cache_lookup (parent->cache,
(GtkCssNodeDeclaration *) decl,
decl,
gtk_css_node_is_first_child (node),
gtk_css_node_is_last_child (node));
if (node->cache == NULL)
......
......@@ -163,10 +163,10 @@ gtk_css_node_style_cache_insert (GtkCssNodeStyleCache *parent,
}
GtkCssNodeStyleCache *
gtk_css_node_style_cache_lookup (GtkCssNodeStyleCache *parent,
GtkCssNodeDeclaration *decl,
gboolean is_first,
gboolean is_last)
gtk_css_node_style_cache_lookup (GtkCssNodeStyleCache *parent,
const GtkCssNodeDeclaration *decl,
gboolean is_first,
gboolean is_last)
{
GtkCssNodeStyleCache *result;
......
......@@ -36,10 +36,10 @@ GtkCssNodeStyleCache * gtk_css_node_style_cache_insert (GtkCssNodeStyle
gboolean is_first,
gboolean is_last,
GtkCssStyle *style);
GtkCssNodeStyleCache * gtk_css_node_style_cache_lookup (GtkCssNodeStyleCache *parent,
GtkCssNodeDeclaration *decl,
gboolean is_first,
gboolean is_last);
GtkCssNodeStyleCache * gtk_css_node_style_cache_lookup (GtkCssNodeStyleCache *parent,
const GtkCssNodeDeclaration *decl,
gboolean is_first,
gboolean is_last);
G_END_DECLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment