[next] telepathy-glib: Use G_DEFINE_BOXED_TYPE for TpIntset now that it' s more normal

Simon McVittie smcv at kemper.freedesktop.org
Thu May 3 07:34:44 PDT 2012


Module: telepathy-glib
Branch: next
Commit: af9588a71c845d529d5285682240e69fdbd6c9dd
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=af9588a71c845d529d5285682240e69fdbd6c9dd

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Thu May  3 14:26:58 2012 +0100

Use G_DEFINE_BOXED_TYPE for TpIntset now that it's more normal

---

 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 86e57a3..363cc0e 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:



More information about the telepathy-commits mailing list