aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-html-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-09 01:24:42 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-09 01:37:20 +0800
commit8a186c3588d3598857c36e2122fa68d01eba30fd (patch)
tree731078659d4e04af8346c5ca68512d8537b3707a /e-util/e-html-utils.c
parent2bf3460cd3eb0853a1d10a6e36f5091898a5533f (diff)
downloadgsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.gz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.bz2
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.lz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.xz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.zst
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.zip
Coding style cleanups.
Diffstat (limited to 'e-util/e-html-utils.c')
-rw-r--r--e-util/e-html-utils.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/e-util/e-html-utils.c b/e-util/e-html-utils.c
index 087ac7a162..ceac32ffc6 100644
--- a/e-util/e-html-utils.c
+++ b/e-util/e-html-utils.c
@@ -130,7 +130,7 @@ email_address_extract (const guchar **cur, gchar **out, const guchar *linestart)
if (dot > end)
return NULL;
- addr = g_strndup ((gchar *)start, end - start);
+ addr = g_strndup ((gchar *) start, end - start);
*out -= *cur - start;
*cur = end;
@@ -158,7 +158,7 @@ is_citation (const guchar *c, gboolean saw_citation)
return TRUE;
/* Same if the next line is */
- p = (const guchar *)strchr ((const gchar *)c, '\n');
+ p = (const guchar *) strchr ((const gchar *) c, '\n');
if (p && *++p == '>')
return TRUE;
@@ -233,7 +233,7 @@ e_text_to_html_full (const gchar *input, guint flags, guint32 color)
col = 0;
- for (cur = linestart = (const guchar *)input; cur && *cur; cur = next) {
+ for (cur = linestart = (const guchar *) input; cur && *cur; cur = next) {
gunichar u;
if (flags & E_TEXT_TO_HTML_MARK_CITATION && col == 0) {
@@ -264,7 +264,7 @@ e_text_to_html_full (const gchar *input, guint flags, guint32 color)
out += sprintf (out, "&gt; ");
}
- u = g_utf8_get_char ((gchar *)cur);
+ u = g_utf8_get_char ((gchar *) cur);
if (g_unichar_isalpha (u) &&
(flags & E_TEXT_TO_HTML_CONVERT_URLS)) {
gchar *tmpurl = NULL, *refurl = NULL, *dispurl = NULL;
@@ -310,7 +310,7 @@ e_text_to_html_full (const gchar *input, guint flags, guint32 color)
if (!*cur)
break;
- u = g_utf8_get_char ((gchar *)cur);
+ u = g_utf8_get_char ((gchar *) cur);
}
if (u == '@' && (flags & E_TEXT_TO_HTML_CONVERT_ADDRESSES)) {
@@ -330,7 +330,7 @@ e_text_to_html_full (const gchar *input, guint flags, guint32 color)
if (!*cur)
break;
- u = g_utf8_get_char ((gchar *)cur);
+ u = g_utf8_get_char ((gchar *) cur);
}
}
@@ -341,7 +341,7 @@ e_text_to_html_full (const gchar *input, guint flags, guint32 color)
u = *cur;
next = cur + 1;
} else
- next = (const guchar *)g_utf8_next_char (cur);
+ next = (const guchar *) g_utf8_next_char (cur);
out = check_size (&buffer, &buffer_size, out, 10);
@@ -396,7 +396,7 @@ e_text_to_html_full (const gchar *input, guint flags, guint32 color)
case ' ':
if (flags & E_TEXT_TO_HTML_CONVERT_SPACES) {
- if (cur == (const guchar *)input ||
+ if (cur == (const guchar *) input ||
*(cur + 1) == ' ' || *(cur + 1) == '\t' ||
*(cur - 1) == '\n') {
strcpy (out, "&nbsp;");