diff options
author | Chris Toshok <toshok@ximian.com> | 2004-05-01 02:23:16 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2004-05-01 02:23:16 +0800 |
commit | ff528b19387f103c1b22cb1d480a651c2f2b9074 (patch) | |
tree | 1787fa3819523dedc30b201dc12b0f0cae95e3c8 /addressbook | |
parent | 013a301b196c9516785690d31ae7cefb7e099988 (diff) | |
download | gsoc2013-evolution-ff528b19387f103c1b22cb1d480a651c2f2b9074.tar gsoc2013-evolution-ff528b19387f103c1b22cb1d480a651c2f2b9074.tar.gz gsoc2013-evolution-ff528b19387f103c1b22cb1d480a651c2f2b9074.tar.bz2 gsoc2013-evolution-ff528b19387f103c1b22cb1d480a651c2f2b9074.tar.lz gsoc2013-evolution-ff528b19387f103c1b22cb1d480a651c2f2b9074.tar.xz gsoc2013-evolution-ff528b19387f103c1b22cb1d480a651c2f2b9074.tar.zst gsoc2013-evolution-ff528b19387f103c1b22cb1d480a651c2f2b9074.zip |
don't use "email" twice for a variable name.. even though they don't
2004-04-30 Chris Toshok <toshok@ximian.com>
* util/e-destination.c (e_destination_set_contact): don't use
"email" twice for a variable name.. even though they don't really
conflict, it's ugly and confusing.
svn path=/trunk/; revision=25720
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/util/e-destination.c | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index df5ea466aa..152faed889 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2004-04-30 Chris Toshok <toshok@ximian.com> + + * util/e-destination.c (e_destination_set_contact): don't use + "email" twice for a variable name.. even though they don't really + conflict, it's ugly and confusing. + 2004-04-30 Enver ALTIN <enver.altin@frontsite.com.tr> * gui/component/GNOME_Evolution_Addressbook.server.in.in: Fixed a diff --git a/addressbook/util/e-destination.c b/addressbook/util/e-destination.c index 1ab46425c4..d81cbd7fbb 100644 --- a/addressbook/util/e-destination.c +++ b/addressbook/util/e-destination.c @@ -332,7 +332,7 @@ e_destination_set_contact (EDestination *dest, EContact *contact, gint email_num GList *p; EDestination *list_dest = e_destination_new (); char *contact_uid = NULL; - char *email = NULL; + char *email_addr = NULL; char *name = NULL; int email_num = -1; gboolean html_pref = FALSE; @@ -358,7 +358,7 @@ e_destination_set_contact (EDestination *dest, EContact *contact, gint email_num else if (!g_ascii_strcasecmp (param_name, EVC_X_DEST_EMAIL)) { GList *v = e_vcard_attribute_param_get_values (param); - email = v ? v->data : NULL; + email_addr = v ? v->data : NULL; } else if (!g_ascii_strcasecmp (param_name, EVC_X_DEST_HTML_MAIL)) { @@ -369,7 +369,7 @@ e_destination_set_contact (EDestination *dest, EContact *contact, gint email_num if (contact_uid) e_destination_set_contact_uid (list_dest, contact_uid, email_num); if (name) e_destination_set_name (list_dest, name); - if (email) e_destination_set_email (list_dest, email); + if (email_addr) e_destination_set_email (list_dest, email_addr); e_destination_set_html_mail_pref (list_dest, html_pref); dest->priv->list_dests = g_list_append (dest->priv->list_dests, list_dest); @@ -381,6 +381,7 @@ e_destination_set_contact (EDestination *dest, EContact *contact, gint email_num } else { /* handle the normal contact case */ + /* is there anything to do here? */ } } } |