summaryrefslogtreecommitdiff
path: root/telepathy-glib/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'telepathy-glib/util.c')
-rw-r--r--telepathy-glib/util.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/telepathy-glib/util.c b/telepathy-glib/util.c
index 039f216f3..edb431e07 100644
--- a/telepathy-glib/util.c
+++ b/telepathy-glib/util.c
@@ -1284,8 +1284,7 @@ tp_weak_ref_destroy (TpWeakRef *self)
/**
* tp_clear_object: (skip)
- * @op: (allow-none): a pointer to a variable, struct member etc. holding a
- * #GObject
+ * @op: a pointer to a variable, struct member etc. holding a #GObject
*
* Set a variable holding a #GObject to %NULL. If it was not already %NULL,
* unref the object it previously pointed to.
@@ -1298,8 +1297,7 @@ tp_weak_ref_destroy (TpWeakRef *self)
/**
* tp_clear_pointer: (skip)
- * @pp: (allow-none): a pointer to a variable, struct member etc. holding a
- * pointer
+ * @pp: a pointer to a variable, struct member etc. holding a pointer
* @destroy: a function to which a gpointer can be passed, to destroy *@pp
* (if calling this macro from C++, explicitly casting the function to
* #GDestroyNotify may be necessary)
@@ -1307,7 +1305,7 @@ tp_weak_ref_destroy (TpWeakRef *self)
* Set a variable holding a pointer to %NULL. If it was not already %NULL,
* unref or destroy the object it previously pointed to with @destroy.
*
- * More precisely, if both @pp and *@pp are non-%NULL, set *@pp to %NULL, then
+ * More precisely, if *@pp is non-%NULL, set *@pp to %NULL, then
* call @destroy on the object that *@pp previously pointed to.
*
* This is analogous to g_clear_error() for non-error objects, but also
@@ -1338,14 +1336,13 @@ tp_weak_ref_destroy (TpWeakRef *self)
/**
* tp_clear_boxed: (skip)
* @gtype: (type GObject.Type): the #GType of *@pp, e.g. %G_TYPE_HASH_TABLE
- * @pp: (allow-none): a pointer to a variable, struct member etc. holding a
- * boxed object
+ * @pp: a pointer to a variable, struct member etc. holding a boxed object
*
* Set a variable holding a boxed object to %NULL. If it was not already %NULL,
* destroy the boxed object it previously pointed to, as appropriate for
* @gtype.
*
- * More precisely, if both @pp and *@pp are non-%NULL, set *@pp to %NULL, then
+ * More precisely, if *@pp is non-%NULL, set *@pp to %NULL, then
* call g_boxed_free() on the object that *@pp previously pointed to.
*
* This is similar to tp_clear_pointer(); see that function's documentation