From 02725b9bbd96f9df0011954f972b83a4c4969a0d Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 29 Nov 2023 12:02:49 +0000 Subject: [PATCH] ghashtable: Add various missing (transfer) annotations Fixes some g-ir-scanner warnings. Signed-off-by: Philip Withnall Helps: #3037 --- glib/ghash.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/glib/ghash.c b/glib/ghash.c index 2f626e9f8..2dcdd9dfc 100644 --- a/glib/ghash.c +++ b/glib/ghash.c @@ -970,7 +970,7 @@ g_hash_table_ensure_keyval_fits (GHashTable *hash_table, gpointer key, gpointer * as its first parameter, and the user-provided key to check against as * its second. * - * Returns: a new #GHashTable + * Returns: (transfer full): a new #GHashTable */ GHashTable * g_hash_table_new (GHashFunc hash_func, @@ -1003,7 +1003,7 @@ g_hash_table_new (GHashFunc hash_func, * calling g_hash_table_remove_all() before releasing the last reference using * g_hash_table_unref(). * - * Returns: a new #GHashTable + * Returns: (transfer full): a new #GHashTable */ GHashTable * g_hash_table_new_full (GHashFunc hash_func, @@ -1154,7 +1154,7 @@ g_hash_table_iter_next (GHashTableIter *iter, * * Returns the #GHashTable associated with @iter. * - * Returns: the #GHashTable associated with @iter. + * Returns: (transfer none): the #GHashTable associated with @iter. * * Since: 2.16 */ @@ -1398,7 +1398,7 @@ g_hash_table_iter_steal (GHashTableIter *iter) * Atomically increments the reference count of @hash_table by one. * This function is MT-safe and may be called from any thread. * - * Returns: the passed in #GHashTable + * Returns: (transfer full): the passed in #GHashTable * * Since: 2.10 */ @@ -1414,7 +1414,7 @@ g_hash_table_ref (GHashTable *hash_table) /** * g_hash_table_unref: - * @hash_table: a valid #GHashTable + * @hash_table: (transfer full): a valid #GHashTable * * Atomically decrements the reference count of @hash_table by one. * If the reference count drops to 0, all keys and values will be