mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-24 02:47:52 +02:00
introspection: use (nullable) or (optional) instead of (allow-none)
If we have an input parameter (or return value) we need to use (nullable). However, if it is an (inout) or (out) parameter, (optional) is sufficient. It looks like (nullable) could be used for everything according to the Annotation documentation, but (optional) is more specific.
This commit is contained in:
@@ -239,7 +239,7 @@ iter_compare (GSequenceIter *node1,
|
||||
|
||||
/**
|
||||
* g_sequence_new:
|
||||
* @data_destroy: (allow-none): a #GDestroyNotify function, or %NULL
|
||||
* @data_destroy: (nullable): a #GDestroyNotify function, or %NULL
|
||||
*
|
||||
* Creates a new GSequence. The @data_destroy function, if non-%NULL will
|
||||
* be called on all items when the sequence is destroyed and on items that
|
||||
|
Reference in New Issue
Block a user