mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-30 12:54:11 +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:
@@ -327,7 +327,7 @@ g_value_peek_pointer (const GValue *value)
|
||||
/**
|
||||
* g_value_set_instance:
|
||||
* @value: An initialized #GValue structure.
|
||||
* @instance: (allow-none): the instance
|
||||
* @instance: (nullable): the instance
|
||||
*
|
||||
* Sets @value from an instantiatable type via the
|
||||
* value_table's collect_value() function.
|
||||
|
Reference in New Issue
Block a user