[evolution-data-server] EDataFactory: Clarify a comment.



commit 97a927edc28fc093edc29c1f34c07460f5ba672c
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Apr 16 18:02:53 2012 -0400

    EDataFactory: Clarify a comment.
    
    Verified this with Ryan Lortie.

 libebackend/e-data-factory.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/libebackend/e-data-factory.c b/libebackend/e-data-factory.c
index 3f1426d..206b98f 100644
--- a/libebackend/e-data-factory.c
+++ b/libebackend/e-data-factory.c
@@ -53,11 +53,8 @@ G_DEFINE_ABSTRACT_TYPE (
 static GWeakRef *
 data_factory_weak_ref_new (void)
 {
-	/* XXX GWeakRef documentation is a little confusing on when
-	 *     g_weak_ref_init() must be called.  The code just zero
-	 *     fills the struct, so it looks like g_weak_ref_init()
-	 *     is only needed when the GWeakRef is a local variable
-	 *     in a call stack frame.  The docs should be clarified. */
+	/* A GWeakRef allocated in zero-filled memory is sufficiently
+	 * initialized without calling g_weak_ref_init(weak_ref, NULL). */
 	return g_slice_new0 (GWeakRef);
 }
 



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