aboutsummaryrefslogtreecommitdiffstats
path: root/filter/e-filter-part.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-07-12 20:02:18 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-08-20 02:17:55 +0800
commitc85109fc322137596bf34cffc5445d568223c60d (patch)
tree711e6d5b2eb3d6c7780d1d01e20d980c67a77f9e /filter/e-filter-part.c
parent7d1751cc26a75166019917ec8c3b35e1083d27d6 (diff)
downloadgsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.gz
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.bz2
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.lz
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.xz
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.zst
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'filter/e-filter-part.c')
-rw-r--r--filter/e-filter-part.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/filter/e-filter-part.c b/filter/e-filter-part.c
index 2154699178..ea18f5959c 100644
--- a/filter/e-filter-part.c
+++ b/filter/e-filter-part.c
@@ -153,15 +153,15 @@ e_filter_part_xml_create (EFilterPart *part,
g_return_val_if_fail (node != NULL, FALSE);
g_return_val_if_fail (E_IS_RULE_CONTEXT (context), FALSE);
- str = (gchar *)xmlGetProp (node, (xmlChar *)"name");
+ str = (gchar *) xmlGetProp (node, (xmlChar *)"name");
part->name = g_strdup (str);
if (str)
xmlFree (str);
n = node->children;
while (n) {
- if (!strcmp ((gchar *)n->name, "input")) {
- type = (gchar *)xmlGetProp (n, (xmlChar *)"type");
+ if (!strcmp ((gchar *) n->name, "input")) {
+ type = (gchar *) xmlGetProp (n, (xmlChar *)"type");
if (type != NULL
&& (el = e_rule_context_new_element (context, type)) != NULL) {
e_filter_element_xml_create (el, n);
@@ -170,15 +170,15 @@ e_filter_part_xml_create (EFilterPart *part,
} else {
g_warning ("Invalid xml format, missing/unknown input type");
}
- } else if (!strcmp ((gchar *)n->name, "title") ||
- !strcmp ((gchar *)n->name, "_title")) {
+ } else if (!strcmp ((gchar *) n->name, "title") ||
+ !strcmp ((gchar *) n->name, "_title")) {
if (!part->title) {
str = (gchar *) xmlNodeGetContent (n);
part->title = g_strdup (str);
if (str)
xmlFree (str);
}
- } else if (!strcmp ((gchar *)n->name, "code")) {
+ } else if (!strcmp ((gchar *) n->name, "code")) {
if (!part->code) {
str = (gchar *) xmlNodeGetContent (n);
part->code = g_strdup (str);
@@ -203,7 +203,7 @@ e_filter_part_xml_encode (EFilterPart *part)
g_return_val_if_fail (E_IS_FILTER_PART (part), NULL);
node = xmlNewNode (NULL, (xmlChar *)"part");
- xmlSetProp (node, (xmlChar *)"name", (xmlChar *)part->name);
+ xmlSetProp (node, (xmlChar *)"name", (xmlChar *) part->name);
for (link = part->elements; link != NULL; link = g_list_next (link)) {
EFilterElement *element = link->data;
@@ -483,7 +483,7 @@ e_filter_part_expand_code (EFilterPart *part,
start = source;
while (start && (newstart = strstr (start, "${"))
- && (end = strstr (newstart+2, "}")) ) {
+ && (end = strstr (newstart + 2, "}")) ) {
EFilterElement *element;
len = end - newstart - 2;
@@ -496,15 +496,15 @@ e_filter_part_expand_code (EFilterPart *part,
element = e_filter_part_find_element (part, name);
if (element != NULL) {
- g_string_append_printf (out, "%.*s", (gint)(newstart-start), start);
+ g_string_append_printf (out, "%.*s", (gint)(newstart - start), start);
e_filter_element_format_sexp (element, out);
#if 0
} else if ((val = g_hash_table_lookup (part->globals, name))) {
- g_string_append_printf (out, "%.*s", newstart-start, start);
+ g_string_append_printf (out, "%.*s", newstart - start, start);
camel_sexp_encode_string (out, val);
#endif
} else {
- g_string_append_printf (out, "%.*s", (gint)(end-start+1), start);
+ g_string_append_printf (out, "%.*s", (gint)(end - start + 1), start);
}
start = end + 1;
}