hash: Explicitly annotate key in iter_next as nullable

There is no reason for key and value to have different annotations.
Both may return NULL as a valid value.

gpointer typed parameters are nullable by convention, so there is
no change here. The (nullable) annotation is just for humans really.
This commit is contained in:
António Fernandes 2023-12-03 13:03:22 +00:00
parent b53218a509
commit c9cd385b17

View File

@ -1101,7 +1101,7 @@ g_hash_table_iter_init (GHashTableIter *iter,
/**
* g_hash_table_iter_next:
* @iter: an initialized #GHashTableIter
* @key: (out) (optional): a location to store the key
* @key: (out) (optional) (nullable): a location to store the key
* @value: (out) (optional) (nullable): a location to store the value
*
* Advances @iter and retrieves the key and/or value that are now