[libpeas] Cleanup the coding style in PeasObjectModule



commit e0bdd7f9ee0535c0c147f5c9a523bbc0139e1660
Author: Garrett Regier <garrettregier gmail com>
Date:   Fri Nov 20 03:11:38 2015 -0800

    Cleanup the coding style in PeasObjectModule

 libpeas/peas-object-module.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/libpeas/peas-object-module.c b/libpeas/peas-object-module.c
index 2c4a2f1..a6ae729 100644
--- a/libpeas/peas-object-module.c
+++ b/libpeas/peas-object-module.c
@@ -407,8 +407,10 @@ peas_object_module_create_object (PeasObjectModule *module,
 
   impls = (InterfaceImplementation *) priv->implementations->data;
   for (i = 0; i < priv->implementations->len; ++i)
-    if (impls[i].iface_type == interface)
-      return impls[i].func (n_parameters, parameters, impls[i].user_data);
+    {
+      if (impls[i].iface_type == interface)
+        return impls[i].func (n_parameters, parameters, impls[i].user_data);
+    }
 
   return NULL;
 }
@@ -437,8 +439,10 @@ peas_object_module_provides_object (PeasObjectModule *module,
 
   impls = (InterfaceImplementation *) priv->implementations->data;
   for (i = 0; i < priv->implementations->len; ++i)
-    if (impls[i].iface_type == interface)
-      return TRUE;
+    {
+      if (impls[i].iface_type == interface)
+        return TRUE;
+    }
 
   return FALSE;
 }


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