mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 13:53:30 +02:00
Add (allow-none) annotation for GValue setters.
Assorted g_value_set_xxx() and g_value_take_xxx() functions actually allow NULL in source parameter.
This commit is contained in:
@@ -1172,7 +1172,7 @@ g_value_get_gtype (const GValue *value)
|
||||
/**
|
||||
* g_value_set_variant:
|
||||
* @value: a valid #GValue of type %G_TYPE_VARIANT
|
||||
* @variant: a #GVariant, or %NULL
|
||||
* @variant: (allow-none): a #GVariant, or %NULL
|
||||
*
|
||||
* Set the contents of a variant #GValue to @variant.
|
||||
* If the variant is floating, it is consumed.
|
||||
@@ -1201,7 +1201,7 @@ g_value_set_variant (GValue *value,
|
||||
/**
|
||||
* g_value_take_variant:
|
||||
* @value: a valid #GValue of type %G_TYPE_VARIANT
|
||||
* @variant: a #GVariant, or %NULL
|
||||
* @variant: (allow-none): a #GVariant, or %NULL
|
||||
*
|
||||
* Set the contents of a variant #GValue to @variant, and takes over
|
||||
* the ownership of the caller's reference to @variant;
|
||||
|
Reference in New Issue
Block a user