[evolution] em-utils.c: More coding style cleanups.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] em-utils.c: More coding style cleanups.
- Date: Tue, 3 May 2011 15:15:24 +0000 (UTC)
commit 554f2eacf773dac9e000dc4415209c70e06efbc3
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue May 3 07:50:40 2011 -0400
em-utils.c: More coding style cleanups.
mail/em-utils.c | 25 +++++++++++++++++--------
1 files changed, 17 insertions(+), 8 deletions(-)
---
diff --git a/mail/em-utils.c b/mail/em-utils.c
index ecd787c..448dcf8 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1007,10 +1007,8 @@ em_utils_folder_is_templates (CamelFolder *folder, const gchar *uri)
CamelSession *session;
CamelStore *store;
EAccountList *account_list;
- EAccount *account;
EIterator *iterator;
gint is_templates = FALSE;
- gchar *templates_uri;
local_templates_folder =
e_mail_local_get_folder (E_MAIL_LOCAL_FOLDER_TEMPLATES);
@@ -1028,9 +1026,14 @@ em_utils_folder_is_templates (CamelFolder *folder, const gchar *uri)
iterator = e_list_get_iterator (E_LIST (account_list));
while (!is_templates && e_iterator_is_valid (iterator)) {
- account = (EAccount *)e_iterator_get (iterator);
+ EAccount *account;
+
+ /* XXX EIterator misuses const. */
+ account = (EAccount *) e_iterator_get (iterator);
if (account->templates_folder_uri) {
+ gchar *templates_uri;
+
templates_uri = em_uri_to_camel (
account->templates_folder_uri);
is_templates = e_mail_folder_uri_equal (
@@ -1062,10 +1065,8 @@ em_utils_folder_is_drafts (CamelFolder *folder, const gchar *uri)
CamelSession *session;
CamelStore *store;
EAccountList *account_list;
- EAccount *account;
EIterator *iterator;
gint is_drafts = FALSE;
- gchar *drafts_uri;
local_drafts_folder =
e_mail_local_get_folder (E_MAIL_LOCAL_FOLDER_DRAFTS);
@@ -1083,9 +1084,14 @@ em_utils_folder_is_drafts (CamelFolder *folder, const gchar *uri)
iterator = e_list_get_iterator (E_LIST (account_list));
while (!is_drafts && e_iterator_is_valid (iterator)) {
- account = (EAccount *)e_iterator_get (iterator);
+ EAccount *account;
+
+ /* XXX EIterator misuses const. */
+ account = (EAccount *) e_iterator_get (iterator);
if (account->drafts_folder_uri) {
+ gchar *drafts_uri;
+
drafts_uri = em_uri_to_camel (
account->drafts_folder_uri);
is_drafts = e_mail_folder_uri_equal (
@@ -1117,10 +1123,8 @@ em_utils_folder_is_sent (CamelFolder *folder, const gchar *uri)
CamelSession *session;
CamelStore *store;
EAccountList *account_list;
- EAccount *account;
EIterator *iterator;
gint is_sent = FALSE;
- gchar *sent_uri;
local_sent_folder =
e_mail_local_get_folder (E_MAIL_LOCAL_FOLDER_SENT);
@@ -1138,9 +1142,14 @@ em_utils_folder_is_sent (CamelFolder *folder, const gchar *uri)
iterator = e_list_get_iterator (E_LIST (account_list));
while (!is_sent && e_iterator_is_valid (iterator)) {
+ EAccount *account;
+
+ /* XXX EIterator misuses const. */
account = (EAccount *)e_iterator_get (iterator);
if (account->sent_folder_uri) {
+ gchar *sent_uri;
+
sent_uri = em_uri_to_camel (
account->sent_folder_uri);
is_sent = e_mail_folder_uri_equal (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]