aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-xml-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-xml-utils.c')
-rw-r--r--e-util/e-xml-utils.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/e-util/e-xml-utils.c b/e-util/e-xml-utils.c
index f67cd514bd..443f59fea9 100644
--- a/e-util/e-xml-utils.c
+++ b/e-util/e-xml-utils.c
@@ -79,7 +79,7 @@ e_xml_get_child_by_name_by_lang (const xmlNode *parent,
child, (const guchar *)"lang");
if (this_lang == NULL) {
C = child;
- } else if (xmlStrcmp (this_lang, (xmlChar *)lang) == 0) {
+ } else if (xmlStrcmp (this_lang, (xmlChar *) lang) == 0) {
#ifdef G_OS_WIN32
g_free (freeme);
#endif
@@ -104,7 +104,7 @@ e_xml_get_child_by_name_by_lang_list_with_score (const xmlNode *parent,
for (node = parent->xmlChildrenNode; node != NULL; node = node->next) {
xmlChar *lang;
- if (node->name == NULL || strcmp ((gchar *)node->name, name) != 0) {
+ if (node->name == NULL || strcmp ((gchar *) node->name, name) != 0) {
continue;
}
lang = xmlGetProp (node, (const guchar *)"xml:lang");
@@ -115,7 +115,7 @@ e_xml_get_child_by_name_by_lang_list_with_score (const xmlNode *parent,
for (l = lang_list, i = 0;
l != NULL && i < *best_lang_score;
l = l->next, i++) {
- if (strcmp ((gchar *) l->data, (gchar *)lang) == 0) {
+ if (strcmp ((gchar *) l->data, (gchar *) lang) == 0) {
best_node = node;
*best_lang_score = i;
}
@@ -150,7 +150,7 @@ e_xml_get_child_by_name_by_lang_list (const xmlNode *parent,
language_names = g_get_language_names ();
while (*language_names != NULL)
lang_list = g_list_append (
- (GList *)lang_list, (gchar *)*language_names++);
+ (GList *) lang_list, (gchar *)*language_names++);
}
return e_xml_get_child_by_name_by_lang_list_with_score
(parent,name,
@@ -170,7 +170,7 @@ e_xml_get_child_by_name_no_lang (const xmlNode *parent,
for (node = parent->xmlChildrenNode; node != NULL; node = node->next) {
xmlChar *lang;
- if (node->name == NULL || strcmp ((gchar *)node->name, name) != 0) {
+ if (node->name == NULL || strcmp ((gchar *) node->name, name) != 0) {
continue;
}
lang = xmlGetProp (node, (const guchar *)"xml:lang");
@@ -223,7 +223,7 @@ e_xml_set_integer_prop_by_name (xmlNode *parent,
g_return_if_fail (prop_name != NULL);
valuestr = g_strdup_printf ("%d", value);
- xmlSetProp (parent, prop_name, (guchar *)valuestr);
+ xmlSetProp (parent, prop_name, (guchar *) valuestr);
g_free (valuestr);
}
@@ -267,7 +267,7 @@ e_xml_set_uint_prop_by_name (xmlNode *parent,
g_return_if_fail (prop_name != NULL);
valuestr = g_strdup_printf ("%u", value);
- xmlSetProp (parent, prop_name, (guchar *)valuestr);
+ xmlSetProp (parent, prop_name, (guchar *) valuestr);
g_free (valuestr);
}
@@ -344,7 +344,7 @@ e_xml_get_double_prop_by_name_with_default (const xmlNode *parent,
prop = xmlGetProp ((xmlNode *) parent, prop_name);
if (prop != NULL) {
- ret_val = e_flexible_strtod ((gchar *)prop, NULL);
+ ret_val = e_flexible_strtod ((gchar *) prop, NULL);
xmlFree (prop);
}
return ret_val;
@@ -369,7 +369,7 @@ e_xml_set_double_prop_by_name (xmlNode *parent,
e_ascii_dtostr (buffer, sizeof (buffer), format, value);
g_free (format);
- xmlSetProp (parent, prop_name, (const guchar *)buffer);
+ xmlSetProp (parent, prop_name, (const guchar *) buffer);
}
gchar *
@@ -394,7 +394,7 @@ e_xml_get_string_prop_by_name_with_default (const xmlNode *parent,
prop = xmlGetProp ((xmlNode *) parent, prop_name);
if (prop != NULL) {
- ret_val = g_strdup ((gchar *)prop);
+ ret_val = g_strdup ((gchar *) prop);
xmlFree (prop);
} else {
ret_val = g_strdup (def);
@@ -411,7 +411,7 @@ e_xml_set_string_prop_by_name (xmlNode *parent,
g_return_if_fail (prop_name != NULL);
if (value != NULL) {
- xmlSetProp (parent, prop_name, (guchar *)value);
+ xmlSetProp (parent, prop_name, (guchar *) value);
}
}
@@ -428,15 +428,15 @@ e_xml_get_translated_string_prop_by_name (const xmlNode *parent,
prop = xmlGetProp ((xmlNode *) parent, prop_name);
if (prop != NULL) {
- ret_val = g_strdup ((gchar *)prop);
+ ret_val = g_strdup ((gchar *) prop);
xmlFree (prop);
return ret_val;
}
combined_name = g_strdup_printf("_%s", prop_name);
- prop = xmlGetProp ((xmlNode *) parent, (guchar *)combined_name);
+ prop = xmlGetProp ((xmlNode *) parent, (guchar *) combined_name);
if (prop != NULL) {
- ret_val = g_strdup (gettext ((gchar *)prop));
+ ret_val = g_strdup (gettext ((gchar *) prop));
xmlFree (prop);
}
g_free (combined_name);