Merge branch 'mcatanzaro/#3558' into 'main'

Remove incorrect (inout) annotations from GWeakRef

Closes #3558

See merge request GNOME/glib!4426
This commit is contained in:
Philip Withnall 2024-12-29 18:49:08 +00:00
commit 68388cf7f7

View File

@ -5640,8 +5640,7 @@ _weak_ref_set (GWeakRef *weak_ref,
/** /**
* g_weak_ref_init: (skip) * g_weak_ref_init: (skip)
* @weak_ref: (inout): uninitialized or empty location for a weak * @weak_ref: uninitialized or empty location for a weak reference
* reference
* @object: (type GObject.Object) (nullable): a #GObject or %NULL * @object: (type GObject.Object) (nullable): a #GObject or %NULL
* *
* Initialise a non-statically-allocated #GWeakRef. * Initialise a non-statically-allocated #GWeakRef.
@ -5675,7 +5674,7 @@ g_weak_ref_init (GWeakRef *weak_ref,
/** /**
* g_weak_ref_clear: (skip) * 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 * may be empty
* *
* Frees resources associated with a non-statically-allocated #GWeakRef. * 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) * 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 * If @weak_ref is not empty, atomically acquire a strong
* reference to the object it points to, and return that reference. * reference to the object it points to, and return that reference.