[tepl] AbstractFactory: API design: set_singleton() is more explicit



commit 26d3c0842e9ece30ac1698b0aaf4df10ab3ebc70
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Aug 4 13:26:24 2017 +0200

    AbstractFactory: API design: set_singleton() is more explicit

 tepl/tepl-abstract-factory.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tepl/tepl-abstract-factory.c b/tepl/tepl-abstract-factory.c
index bcf2991..6e19fc1 100644
--- a/tepl/tepl-abstract-factory.c
+++ b/tepl/tepl-abstract-factory.c
@@ -41,8 +41,9 @@
  *
  * An example of another sub-classable singleton is PeasEngine, in libpeas. I
  * didn't really like the PeasEngine implementation with get_default(), so I've
- * implemented TeplAbstractFactory differently. But I'll maybe change my mind in
- * the future. -- swilmet
+ * implemented TeplAbstractFactory differently.
+ * tepl_abstract_factory_set_singleton() is more explicit. And doing things
+ * explicitly is clearer. -- swilmet
  */
 
 static TeplAbstractFactory *singleton = NULL;


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