[empathy/gnome-2-34] fix coding style
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-34] fix coding style
- Date: Wed, 16 Feb 2011 11:42:42 +0000 (UTC)
commit 5f504abee583ca0e8ec6721a5d2e305b59003d04
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Dec 16 10:43:06 2010 +0100
fix coding style
libempathy/empathy-ft-factory.c | 29 ++++++++++++++++-------------
1 files changed, 16 insertions(+), 13 deletions(-)
---
diff --git a/libempathy/empathy-ft-factory.c b/libempathy/empathy-ft-factory.c
index 7ae9ad1..3443112 100644
--- a/libempathy/empathy-ft-factory.c
+++ b/libempathy/empathy-ft-factory.c
@@ -70,19 +70,22 @@ do_constructor (GType type,
guint n_props,
GObjectConstructParam *props)
{
- GObject *retval;
+ GObject *retval;
- if (factory_singleton != NULL) {
- retval = g_object_ref (factory_singleton);
- } else {
- retval = G_OBJECT_CLASS (empathy_ft_factory_parent_class)->constructor
- (type, n_props, props);
+ if (factory_singleton != NULL)
+ {
+ retval = g_object_ref (factory_singleton);
+ }
+ else
+ {
+ retval = G_OBJECT_CLASS (empathy_ft_factory_parent_class)->constructor
+ (type, n_props, props);
- factory_singleton = EMPATHY_FT_FACTORY (retval);
- g_object_add_weak_pointer (retval, (gpointer *) &factory_singleton);
- }
+ factory_singleton = EMPATHY_FT_FACTORY (retval);
+ g_object_add_weak_pointer (retval, (gpointer *) &factory_singleton);
+ }
- return retval;
+ return retval;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]