aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-completion-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-completion-model.c')
-rw-r--r--src/ephy-completion-model.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ephy-completion-model.c b/src/ephy-completion-model.c
index 6b839aaed..6a0966ba6 100644
--- a/src/ephy-completion-model.c
+++ b/src/ephy-completion-model.c
@@ -51,9 +51,9 @@ static GObjectClass *parent_class = NULL;
GType
ephy_completion_model_get_type (void)
{
- static GType ephy_completion_model_type = 0;
+ static GType type = 0;
- if (ephy_completion_model_type == 0)
+ if (G_UNLIKELY (type == 0))
{
static const GTypeInfo our_info =
{
@@ -75,16 +75,16 @@ ephy_completion_model_get_type (void)
NULL
};
- ephy_completion_model_type = g_type_register_static (G_TYPE_OBJECT,
- "EphyCompletionModel",
- &our_info, 0);
+ type = g_type_register_static (G_TYPE_OBJECT,
+ "EphyCompletionModel",
+ &our_info, 0);
- g_type_add_interface_static (ephy_completion_model_type,
+ g_type_add_interface_static (type,
GTK_TYPE_TREE_MODEL,
&tree_model_info);
}
- return ephy_completion_model_type;
+ return type;
}
static void