summaryrefslogtreecommitdiff
path: root/atspi/atspi-relation.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2022-12-06 20:44:48 -0600
committerFederico Mena Quintero <federico@gnome.org>2022-12-06 20:50:13 -0600
commitb10fcf21b1ef49dd3d6297ac657434ece3b23578 (patch)
treed560f8449f3ae75fea343887dcb6d5f4df7b434c /atspi/atspi-relation.c
parentbf4d71a38b970699f63ce7b701e9bf4c9d31f717 (diff)
downloadat-spi2-core-b10fcf21b1ef49dd3d6297ac657434ece3b23578.tar.gz
Reformat all the *.[ch] files with clang-format
I ran this on each directory with C files: clang-format -i *.[ch] "-i" is the in-place option. I also adjusted the order of #includes for some files which failed to build after that: Clang-format reorders blocks of #include directives alphabetically, but they can be grouped and separated by blank lines. If there is a blank line between blocks, like #include "zork.h" #include "bar.h" #include "foo.h" then it will not put zork.h after the other two. The last two header files will be sorted alphabetically. We can adjust the formatting of chunks of code by hand with comments like these: /* clang-format off */ this code { is, formatted, by, hand; } /* clang-format on */ See https://clang.llvm.org/docs/ClangFormat.html for the general manual and https://clang.llvm.org/docs/ClangFormatStyleOptions.html for the style options and the comments described above.
Diffstat (limited to 'atspi/atspi-relation.c')
-rw-r--r--atspi/atspi-relation.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/atspi/atspi-relation.c b/atspi/atspi-relation.c
index 527826f6..a36e84c1 100644
--- a/atspi/atspi-relation.c
+++ b/atspi/atspi-relation.c
@@ -108,12 +108,12 @@ _atspi_relation_new_from_iter (DBusMessageIter *iter)
relation->targets = g_array_new (TRUE, TRUE, sizeof (AtspiAccessible *));
dbus_message_iter_recurse (&iter_struct, &iter_array);
while (dbus_message_iter_get_arg_type (&iter_array) != DBUS_TYPE_INVALID)
- {
- AtspiAccessible *accessible;
- accessible = _atspi_dbus_consume_accessible (&iter_array);
- relation->targets = g_array_append_val (relation->targets, accessible);
- /* Iter was moved already, so no need to call dbus_message_iter_next */
- }
+ {
+ AtspiAccessible *accessible;
+ accessible = _atspi_dbus_consume_accessible (&iter_array);
+ relation->targets = g_array_append_val (relation->targets, accessible);
+ /* Iter was moved already, so no need to call dbus_message_iter_next */
+ }
return relation;
}
@@ -131,7 +131,7 @@ atspi_relation_finalize (GObject *object)
gint i;
for (i = 0; i < relation->targets->len; i++)
- g_object_unref (g_array_index (relation->targets, AtspiAccessible *, i));
+ g_object_unref (g_array_index (relation->targets, AtspiAccessible *, i));
g_array_free (relation->targets, TRUE);
G_OBJECT_CLASS (atspi_relation_parent_class)->finalize (object);