mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 19:22:11 +01:00
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:
parent
b53218a509
commit
c9cd385b17
@ -1101,7 +1101,7 @@ g_hash_table_iter_init (GHashTableIter *iter,
|
|||||||
/**
|
/**
|
||||||
* g_hash_table_iter_next:
|
* g_hash_table_iter_next:
|
||||||
* @iter: an initialized #GHashTableIter
|
* @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
|
* @value: (out) (optional) (nullable): a location to store the value
|
||||||
*
|
*
|
||||||
* Advances @iter and retrieves the key and/or value that are now
|
* Advances @iter and retrieves the key and/or value that are now
|
||||||
|
Loading…
x
Reference in New Issue
Block a user