mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +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:
@@ -118,7 +118,7 @@ g_initable_init (GInitable *initable,
|
||||
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
||||
* @error: a #GError location to store the error occurring, or %NULL to
|
||||
* ignore.
|
||||
* @first_property_name: (allow-none): the name of the first property, or %NULL if no
|
||||
* @first_property_name: (nullable): the name of the first property, or %NULL if no
|
||||
* properties
|
||||
* @...: the value if the first property, followed by and other property
|
||||
* value pairs, and ended by %NULL.
|
||||
|
Reference in New Issue
Block a user