[glib: 1/2] Add nullable annotation to return value of `g_variant_dict_lookup_value`.




commit 1b3d5cff0be199b7cb2c4c278bd0812e85e4610d
Author: Hugo Parente Lima <hugo pl gmail com>
Date:   Sat Jun 4 21:40:35 2022 -0300

    Add nullable annotation to return value of `g_variant_dict_lookup_value`.

 glib/gvariant.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gvariant.c b/glib/gvariant.c
index ef92bcf9ac..e9399710e7 100644
--- a/glib/gvariant.c
+++ b/glib/gvariant.c
@@ -4063,7 +4063,7 @@ g_variant_dict_lookup (GVariantDict *dict,
  * returned.  If @expected_type was specified then any non-%NULL return
  * value will have this type.
  *
- * Returns: (transfer full): the value of the dictionary key, or %NULL
+ * Returns: (transfer full) (nullable): the value of the dictionary key, or %NULL
  *
  * Since: 2.40
  **/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]