aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-new-bookmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks/ephy-new-bookmark.c')
-rw-r--r--src/bookmarks/ephy-new-bookmark.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bookmarks/ephy-new-bookmark.c b/src/bookmarks/ephy-new-bookmark.c
index 142a2505d..9592f686e 100644
--- a/src/bookmarks/ephy-new-bookmark.c
+++ b/src/bookmarks/ephy-new-bookmark.c
@@ -83,9 +83,9 @@ static GObjectClass *parent_class = NULL;
GType
ephy_new_bookmark_get_type (void)
{
- static GType ephy_new_bookmark_type = 0;
+ static GType type = 0;
- if (ephy_new_bookmark_type == 0)
+ if (G_UNLIKELY (type == 0))
{
static const GTypeInfo our_info =
{
@@ -100,12 +100,12 @@ ephy_new_bookmark_get_type (void)
(GInstanceInitFunc) ephy_new_bookmark_init
};
- ephy_new_bookmark_type = g_type_register_static (GTK_TYPE_DIALOG,
- "EphyNewBookmark",
- &our_info, 0);
+ type = g_type_register_static (GTK_TYPE_DIALOG,
+ "EphyNewBookmark",
+ &our_info, 0);
}
- return ephy_new_bookmark_type;
+ return type;
}
static void