[mutter] monitor-config-store: Parentheses for correct indentation
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] monitor-config-store: Parentheses for correct indentation
- Date: Wed, 10 Aug 2022 15:16:23 +0000 (UTC)
commit 5476feeaf2bd944c05a15f6308843060c9fcd5a8
Author: Daniel van Vugt <daniel van vugt canonical com>
Date: Tue Jul 12 17:26:43 2022 +0800
monitor-config-store: Parentheses for correct indentation
To silence check-code-style complaints in CI, but also for consistency
(other cases already have parentheses).
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2511>
src/backends/meta-monitor-config-store.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/backends/meta-monitor-config-store.c b/src/backends/meta-monitor-config-store.c
index 3e8f2777d1..eaed9592ff 100644
--- a/src/backends/meta-monitor-config-store.c
+++ b/src/backends/meta-monitor-config-store.c
@@ -936,6 +936,7 @@ handle_end_element (GMarkupParseContext *context,
}
case STATE_STORE:
+ {
g_assert (g_str_equal (element_name, "store"));
if (parser->pending_store == -1)
@@ -960,8 +961,10 @@ handle_end_element (GMarkupParseContext *context,
parser->state = STATE_STORES;
return;
+ }
case STATE_STORES:
+ {
g_assert (g_str_equal (element_name, "stores"));
if (parser->config_store->has_stores_policy)
@@ -980,8 +983,10 @@ handle_end_element (GMarkupParseContext *context,
parser->state = STATE_POLICY;
return;
+ }
case STATE_DBUS:
+ {
if (!parser->config_store->has_dbus_policy)
{
parser->config_store->has_dbus_policy = TRUE;
@@ -997,12 +1002,15 @@ handle_end_element (GMarkupParseContext *context,
parser->state = STATE_POLICY;
return;
+ }
case STATE_POLICY:
+ {
g_assert (g_str_equal (element_name, "policy"));
parser->state = STATE_MONITORS;
return;
+ }
case STATE_UNKNOWN:
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]