aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-encodings.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/ephy-encodings.c')
-rw-r--r--embed/ephy-encodings.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/embed/ephy-encodings.c b/embed/ephy-encodings.c
index 868391c29..bfe640417 100644
--- a/embed/ephy-encodings.c
+++ b/embed/ephy-encodings.c
@@ -174,9 +174,9 @@ static GObjectClass *parent_class = NULL;
GType
ephy_encodings_get_type (void)
{
- static GType ephy_encodings_type = 0;
+ static GType type = 0;
- if (ephy_encodings_type == 0)
+ if (G_UNLIKELY (type == 0))
{
static const GTypeInfo our_info =
{
@@ -191,12 +191,12 @@ ephy_encodings_get_type (void)
(GInstanceInitFunc) ephy_encodings_init
};
- ephy_encodings_type = g_type_register_static (G_TYPE_OBJECT,
- "EphyEncodings",
- &our_info, 0);
+ type = g_type_register_static (G_TYPE_OBJECT,
+ "EphyEncodings",
+ &our_info, 0);
}
- return ephy_encodings_type;
+ return type;
}
static void