Fix -Wmisleading-indentation warnings
authorIain Lane <iain@orangesquash.org.uk>
Tue, 23 May 2017 09:39:44 +0000 (10:39 +0100)
committerMike Gorse <mgorse@linux-e5s4.suse>
Fri, 26 May 2017 02:18:01 +0000 (21:18 -0500)
There are a couple of places where code is indented as if it should be
part of an `if' block, but it isn't because there are no braces. Fix
those by unindenting.

Caught by -Werror=misleading-indentation.

atspi/atspi-accessible.c
registryd/registry.c

index b84317f..e7f1446 100644 (file)
@@ -173,13 +173,14 @@ atspi_accessible_finalize (GObject *object)
 {
   AtspiAccessible *accessible = ATSPI_ACCESSIBLE (object);
 
-    g_free (accessible->description);
-    g_free (accessible->name);
+  g_free (accessible->description);
+  g_free (accessible->name);
+
   if (accessible->attributes)
     g_hash_table_unref (accessible->attributes);
 
-    if (accessible->priv->cache)
-      g_hash_table_destroy (accessible->priv->cache);
+  if (accessible->priv->cache)
+    g_hash_table_destroy (accessible->priv->cache);
 
 #ifdef DEBUG_REF_COUNTS
   accessible_count--;
index b5d91f8..cbf0c1b 100644 (file)
@@ -104,7 +104,8 @@ return_v_string (DBusMessageIter * iter, const gchar * str)
   if (!dbus_message_iter_open_container (iter, DBUS_TYPE_VARIANT, "s",
                                     &variant))
     return FALSE;
-    dbus_message_iter_append_basic (&variant, DBUS_TYPE_STRING, &str);
+
+  dbus_message_iter_append_basic (&variant, DBUS_TYPE_STRING, &str);
   dbus_message_iter_close_container (iter, &variant);
   return TRUE;
 }