From 15edbef3a0e2dc3eb270b0929331e3a866e02341 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Tue, 10 Dec 2024 08:51:07 -0600 Subject: [PATCH] Remove incorrect (inout) annotations from GWeakRef These are in parameters, not inout parameters. Fixes #3558 --- gobject/gobject.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gobject/gobject.c b/gobject/gobject.c index 9739c614d..d7f3d7a91 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -5640,8 +5640,7 @@ _weak_ref_set (GWeakRef *weak_ref, /** * g_weak_ref_init: (skip) - * @weak_ref: (inout): uninitialized or empty location for a weak - * reference + * @weak_ref: uninitialized or empty location for a weak reference * @object: (type GObject.Object) (nullable): a #GObject or %NULL * * Initialise a non-statically-allocated #GWeakRef. @@ -5675,7 +5674,7 @@ g_weak_ref_init (GWeakRef *weak_ref, /** * g_weak_ref_clear: (skip) - * @weak_ref: (inout): location of a weak reference, which + * @weak_ref: location of a weak reference, which * may be empty * * Frees resources associated with a non-statically-allocated #GWeakRef. @@ -5697,7 +5696,7 @@ g_weak_ref_clear (GWeakRef *weak_ref) /** * g_weak_ref_get: (skip) - * @weak_ref: (inout): location of a weak reference to a #GObject + * @weak_ref: location of a weak reference to a #GObject * * If @weak_ref is not empty, atomically acquire a strong * reference to the object it points to, and return that reference.