[glib/wip/nacho/registry-writable: 1/2] registrybackend: minor style cleanup



commit 883c0b8e8fdc03dd5597fef8ceebd24bd7fd7b4f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Feb 1 17:17:35 2016 +0100

    registrybackend: minor style cleanup

 gio/gregistrysettingsbackend.c |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/gio/gregistrysettingsbackend.c b/gio/gregistrysettingsbackend.c
index abe7ed0..13a61e9 100644
--- a/gio/gregistrysettingsbackend.c
+++ b/gio/gregistrysettingsbackend.c
@@ -1037,10 +1037,11 @@ g_registry_backend_write (GSettingsBackend *backend,
 
   result = RegCreateKeyExA (HKEY_CURRENT_USER, self->base_path, 0, NULL, 0,
                             KEY_WRITE, NULL, &hroot, NULL);
-  if (result != ERROR_SUCCESS) {
-    trace ("Error opening/creating key %s.\n", self->base_path);
-    return FALSE;
-  }
+  if (result != ERROR_SUCCESS)
+    {
+      trace ("Error opening/creating key %s.\n", self->base_path);
+      return FALSE;
+    }
 
   action.self = self;
   action.hroot = hroot;
@@ -1064,10 +1065,11 @@ g_registry_backend_write_tree (GSettingsBackend *backend,
 
   result = RegCreateKeyExA (HKEY_CURRENT_USER, self->base_path, 0, NULL, 0,
                             KEY_WRITE, NULL, &hroot, NULL);
-  if (result != ERROR_SUCCESS) {
-    trace ("Error opening/creating key %s.\n", self->base_path);
-    return FALSE;
-  }
+  if (result != ERROR_SUCCESS)
+    {
+      trace ("Error opening/creating key %s.\n", self->base_path);
+      return FALSE;
+    }
 
   action.self =  self;
   action.hroot = hroot;


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