aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-favorites-menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks/ephy-favorites-menu.c')
-rw-r--r--src/bookmarks/ephy-favorites-menu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bookmarks/ephy-favorites-menu.c b/src/bookmarks/ephy-favorites-menu.c
index 7a30f46a0..6dedfde1b 100644
--- a/src/bookmarks/ephy-favorites-menu.c
+++ b/src/bookmarks/ephy-favorites-menu.c
@@ -57,9 +57,9 @@ static gpointer parent_class;
GType
ephy_favorites_menu_get_type (void)
{
- static GType ephy_favorites_menu_type = 0;
+ static GType type = 0;
- if (ephy_favorites_menu_type == 0)
+ if (G_UNLIKELY (type == 0))
{
static const GTypeInfo our_info =
{
@@ -74,11 +74,11 @@ ephy_favorites_menu_get_type (void)
(GInstanceInitFunc) ephy_favorites_menu_init
};
- ephy_favorites_menu_type = g_type_register_static (G_TYPE_OBJECT,
- "EphyFavoritesMenu",
- &our_info, 0);
+ type = g_type_register_static (G_TYPE_OBJECT,
+ "EphyFavoritesMenu",
+ &our_info, 0);
}
- return ephy_favorites_menu_type;
+ return type;
}
static void