[libgit2-glib] ggit-object.c: Fix return annotations



commit 912766d7d1197fb7675e18be8a24bcefa356aef9
Author: Brian C. Lane <bcl redhat com>
Date:   Wed Aug 30 17:02:12 2017 -0700

    ggit-object.c: Fix return annotations
    
    Add (nullable) as needed.

 libgit2-glib/ggit-object.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgit2-glib/ggit-object.c b/libgit2-glib/ggit-object.c
index ba86110..ab0a6db 100644
--- a/libgit2-glib/ggit-object.c
+++ b/libgit2-glib/ggit-object.c
@@ -47,7 +47,7 @@ ggit_object_init (GgitObject *object)
  *
  * Gets the #GgitOId of @object.
  *
- * Returns: (transfer full): the #GgitOId of the object.
+ * Returns: (transfer full) (nullable): the #GgitOId of the object or %NULL.
  */
 GgitOId *
 ggit_object_get_id (GgitObject *object)
@@ -67,7 +67,7 @@ ggit_object_get_id (GgitObject *object)
  *
  * Gets the #GgitRepository that owns @object.
  *
- * Returns: (transfer full): the #GgitRepository that owns this object.
+ * Returns: (transfer full) (nullable): the #GgitRepository that owns this object or %NULL.
  * The returned value must be free'd calling g_object_unref().
  */
 GgitRepository *


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