aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-node-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-node-filter.c')
-rw-r--r--lib/ephy-node-filter.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/ephy-node-filter.c b/lib/ephy-node-filter.c
index 229f99ad7..fd270b636 100644
--- a/lib/ephy-node-filter.c
+++ b/lib/ephy-node-filter.c
@@ -81,9 +81,9 @@ static guint ephy_node_filter_signals[LAST_SIGNAL] = { 0 };
GType
ephy_node_filter_get_type (void)
{
- static GType ephy_node_filter_type = 0;
+ static GType type = 0;
- if (ephy_node_filter_type == 0)
+ if (G_UNLIKELY (type == 0))
{
static const GTypeInfo our_info =
{
@@ -98,12 +98,12 @@ ephy_node_filter_get_type (void)
(GInstanceInitFunc) ephy_node_filter_init
};
- ephy_node_filter_type = g_type_register_static (G_TYPE_OBJECT,
- "EphyNodeFilter",
- &our_info, 0);
+ type = g_type_register_static (G_TYPE_OBJECT,
+ "EphyNodeFilter",
+ &our_info, 0);
}
- return ephy_node_filter_type;
+ return type;
}
static void