diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-03 14:26:58 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-03 14:26:58 +0100 |
commit | af9588a71c845d529d5285682240e69fdbd6c9dd (patch) | |
tree | 764e1aa7961e3d0026893fab5fe729d5bd58112c | |
parent | 3369e9abad9e743af0464d445eaadd79fec5abcf (diff) |
Use G_DEFINE_BOXED_TYPE for TpIntset now that it's more normal
-rw-r--r-- | telepathy-glib/intset.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/telepathy-glib/intset.c b/telepathy-glib/intset.c index 86e57a341..363cc0ee0 100644 --- a/telepathy-glib/intset.c +++ b/telepathy-glib/intset.c @@ -66,20 +66,7 @@ G_STATIC_ASSERT (sizeof (gpointer) >= sizeof (gsize)); * Since: 0.11.3 */ -GType -tp_intset_get_type (void) -{ - static GType type = 0; - - if (G_UNLIKELY (type == 0)) - { - type = g_boxed_type_register_static (g_intern_static_string ("TpIntset"), - (GBoxedCopyFunc) tp_intset_copy, - (GBoxedFreeFunc) tp_intset_destroy); - } - - return type; -} +G_DEFINE_BOXED_TYPE (TpIntset, tp_intset, tp_intset_copy, tp_intset_destroy) /** * TpIntFunc: |