summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2019-10-19 10:58:48 -0400
committerAllen Winter <allen.winter@kdab.com>2019-10-19 11:00:58 -0400
commit31bd82dcf28cb6ff14ceaf1e8356591bf5d543b2 (patch)
tree79239844df20ff6d0c89184fbd74f8fdbaa72377
parent59362ff6121795c731cc2cb7f29655cf66d58a58 (diff)
downloadlibical-git-31bd82dcf28cb6ff14ceaf1e8356591bf5d543b2.tar.gz
icalproperty.c, icalcomponent.c - minor coding style
-rw-r--r--src/libical/icalcomponent.c3
-rw-r--r--src/libical/icalproperty.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/libical/icalcomponent.c b/src/libical/icalcomponent.c
index c16bb6dc..18779128 100644
--- a/src/libical/icalcomponent.c
+++ b/src/libical/icalcomponent.c
@@ -2707,8 +2707,7 @@ void icalcomponent_normalize(icalcomponent *comp)
if (remove) {
icalproperty_set_parent(prop, 0); // MUST NOT have a parent to free
icalproperty_free(prop);
- }
- else {
+ } else {
pvl_insert_ordered(sorted_props, prop_compare, prop);
}
}
diff --git a/src/libical/icalproperty.c b/src/libical/icalproperty.c
index 5485a55e..63a08000 100644
--- a/src/libical/icalproperty.c
+++ b/src/libical/icalproperty.c
@@ -1064,8 +1064,7 @@ void icalproperty_normalize(icalproperty *prop)
if (remove) {
icalparameter_set_parent(param, 0); // MUST NOT have a parent to free
icalparameter_free(param);
- }
- else {
+ } else {
pvl_insert_ordered(sorted_params, param_compare, param);
}
}