aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/importers
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 /addressbook/importers
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 'addressbook/importers')
-rw-r--r--addressbook/importers/evolution-csv-importer.c4
-rw-r--r--addressbook/importers/evolution-ldif-importer.c8
-rw-r--r--addressbook/importers/evolution-vcard-importer.c12
3 files changed, 12 insertions, 12 deletions
diff --git a/addressbook/importers/evolution-csv-importer.c b/addressbook/importers/evolution-csv-importer.c
index 122a0e40f0..6d3fd002b3 100644
--- a/addressbook/importers/evolution-csv-importer.c
+++ b/addressbook/importers/evolution-csv-importer.c
@@ -787,7 +787,7 @@ csv_supported (EImport *ei, EImportTarget *target, EImportImporter *im)
if (target->type != E_IMPORT_TARGET_URI)
return FALSE;
- s = (EImportTargetURI *)target;
+ s = (EImportTargetURI *) target;
if (s->uri_src == NULL)
return TRUE;
@@ -924,7 +924,7 @@ csv_get_preview (EImport *ei, EImportTarget *target, EImportImporter *im)
GtkWidget *preview;
GList *contacts = NULL;
EContact *contact;
- EImportTargetURI *s = (EImportTargetURI *)target;
+ EImportTargetURI *s = (EImportTargetURI *) target;
gchar *filename;
FILE *file;
CSVImporter *gci;
diff --git a/addressbook/importers/evolution-ldif-importer.c b/addressbook/importers/evolution-ldif-importer.c
index 388d410611..4d5ddcc629 100644
--- a/addressbook/importers/evolution-ldif-importer.c
+++ b/addressbook/importers/evolution-ldif-importer.c
@@ -255,7 +255,7 @@ parseLine (GHashTable *dn_contact_hash, EContact *contact,
return FALSE;
}
- colon = (gchar *)strchr ( ptr, ':' );
+ colon = (gchar *) strchr ( ptr, ':' );
if (colon) {
gint i;
@@ -588,7 +588,7 @@ ldif_supported (EImport *ei, EImportTarget *target, EImportImporter *im)
if (target->type != E_IMPORT_TARGET_URI)
return FALSE;
- s = (EImportTargetURI *)target;
+ s = (EImportTargetURI *) target;
if (s->uri_src == NULL)
return TRUE;
@@ -648,7 +648,7 @@ ldif_import (EImport *ei, EImportTarget *target, EImportImporter *im)
LDIFImporter *gci;
ESource *source;
FILE *file = NULL;
- EImportTargetURI *s = (EImportTargetURI *)target;
+ EImportTargetURI *s = (EImportTargetURI *) target;
gchar *filename;
filename = g_filename_from_uri (s->uri_src, NULL, NULL);
@@ -697,7 +697,7 @@ ldif_get_preview (EImport *ei, EImportTarget *target, EImportImporter *im)
GtkWidget *preview;
GList *contacts = NULL;
EContact *contact;
- EImportTargetURI *s = (EImportTargetURI *)target;
+ EImportTargetURI *s = (EImportTargetURI *) target;
gchar *filename;
GHashTable *dn_contact_hash;
FILE *file;
diff --git a/addressbook/importers/evolution-vcard-importer.c b/addressbook/importers/evolution-vcard-importer.c
index c9cc489f2b..38a4a57574 100644
--- a/addressbook/importers/evolution-vcard-importer.c
+++ b/addressbook/importers/evolution-vcard-importer.c
@@ -132,7 +132,7 @@ vcard_import_contact (VCardImporter *gci, EContact *contact)
if (v && v->data) {
if (!strncmp ((gchar *)v->data, "<?xml", 5)) {
- EDestination *dest = e_destination_import ((gchar *)v->data);
+ EDestination *dest = e_destination_import ((gchar *) v->data);
e_destination_export_to_vcard_attribute (dest, a);
@@ -357,8 +357,8 @@ guess_vcard_encoding (const gchar *filename)
}
fclose (handle);
- if (has_bom ((gunichar2*)line)) {
- gunichar2 *utf16 = (gunichar2*)line;
+ if (has_bom ((gunichar2*) line)) {
+ gunichar2 *utf16 = (gunichar2*) line;
/* Check for a BOM to try to detect UTF-16 encoded vcards
* (MacOSX address book creates such vcards for example)
*/
@@ -442,7 +442,7 @@ vcard_supported (EImport *ei, EImportTarget *target, EImportImporter *im)
if (target->type != E_IMPORT_TARGET_URI)
return FALSE;
- s = (EImportTargetURI *)target;
+ s = (EImportTargetURI *) target;
if (s->uri_src == NULL)
return TRUE;
@@ -517,7 +517,7 @@ vcard_import (EImport *ei, EImportTarget *target, EImportImporter *im)
{
VCardImporter *gci;
ESource *source;
- EImportTargetURI *s = (EImportTargetURI *)target;
+ EImportTargetURI *s = (EImportTargetURI *) target;
gchar *filename;
gchar *contents;
VCardEncoding encoding;
@@ -575,7 +575,7 @@ vcard_get_preview (EImport *ei, EImportTarget *target, EImportImporter *im)
GList *contacts;
gchar *contents;
VCardEncoding encoding;
- EImportTargetURI *s = (EImportTargetURI *)target;
+ EImportTargetURI *s = (EImportTargetURI *) target;
gchar *filename;
filename = g_filename_from_uri (s->uri_src, NULL, NULL);