forked from AuroraMiddleware/gtk
cssnodestylecache: Use const pointer in lookup
This commit is contained in:
parent
4b38a39c9d
commit
ec8192420e
@ -318,7 +318,7 @@ lookup_in_global_parent_cache (GtkCssNode *node,
|
|||||||
|
|
||||||
g_assert (node->cache == NULL);
|
g_assert (node->cache == NULL);
|
||||||
node->cache = gtk_css_node_style_cache_lookup (parent->cache,
|
node->cache = gtk_css_node_style_cache_lookup (parent->cache,
|
||||||
(GtkCssNodeDeclaration *) decl,
|
decl,
|
||||||
gtk_css_node_is_first_child (node),
|
gtk_css_node_is_first_child (node),
|
||||||
gtk_css_node_is_last_child (node));
|
gtk_css_node_is_last_child (node));
|
||||||
if (node->cache == NULL)
|
if (node->cache == NULL)
|
||||||
|
@ -164,7 +164,7 @@ gtk_css_node_style_cache_insert (GtkCssNodeStyleCache *parent,
|
|||||||
|
|
||||||
GtkCssNodeStyleCache *
|
GtkCssNodeStyleCache *
|
||||||
gtk_css_node_style_cache_lookup (GtkCssNodeStyleCache *parent,
|
gtk_css_node_style_cache_lookup (GtkCssNodeStyleCache *parent,
|
||||||
GtkCssNodeDeclaration *decl,
|
const GtkCssNodeDeclaration *decl,
|
||||||
gboolean is_first,
|
gboolean is_first,
|
||||||
gboolean is_last)
|
gboolean is_last)
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,7 @@ GtkCssNodeStyleCache * gtk_css_node_style_cache_insert (GtkCssNodeStyle
|
|||||||
gboolean is_last,
|
gboolean is_last,
|
||||||
GtkCssStyle *style);
|
GtkCssStyle *style);
|
||||||
GtkCssNodeStyleCache * gtk_css_node_style_cache_lookup (GtkCssNodeStyleCache *parent,
|
GtkCssNodeStyleCache * gtk_css_node_style_cache_lookup (GtkCssNodeStyleCache *parent,
|
||||||
GtkCssNodeDeclaration *decl,
|
const GtkCssNodeDeclaration *decl,
|
||||||
gboolean is_first,
|
gboolean is_first,
|
||||||
gboolean is_last);
|
gboolean is_last);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user