[evolution-ews] M!3 - Prefer g_string_append_c() over g_string_append()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] M!3 - Prefer g_string_append_c() over g_string_append()
- Date: Mon, 8 Jul 2019 10:33:21 +0000 (UTC)
commit 6fdcbb50eed20e9e0fb04937a224fbc001915309
Author: Дилян Палаузов <git-dpa aegee org>
Date: Sat Jul 6 15:01:02 2019 +0000
M!3 - Prefer g_string_append_c() over g_string_append()
Likewise for g_string_prepend_c() and g_string_prepend().
Closes https://gitlab.gnome.org/GNOME/evolution-ews/merge_requests/3
src/camel/camel-ews-search.c | 2 +-
src/camel/camel-ews-store.c | 4 ++--
src/camel/camel-ews-utils.c | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/camel/camel-ews-search.c b/src/camel/camel-ews-search.c
index 71ca36ad..865f1d73 100644
--- a/src/camel/camel-ews-search.c
+++ b/src/camel/camel-ews-search.c
@@ -250,7 +250,7 @@ ews_search_process_criteria (CamelSExp *sexp,
/* Close the 'and' */
if (words->len >= 2)
- g_string_append (expression, ")");
+ g_string_append_c (expression, ')');
if (e_ews_connection_find_folder_items_sync (
connection, EWS_PRIORITY_MEDIUM,
diff --git a/src/camel/camel-ews-store.c b/src/camel/camel-ews-store.c
index ff8bd10c..c3795266 100644
--- a/src/camel/camel-ews-store.c
+++ b/src/camel/camel-ews-store.c
@@ -2174,12 +2174,12 @@ get_public_folder_full_name (EEwsFolder *folder,
folder = g_hash_table_lookup (folders_by_id, parent_fid->id);
if (folder) {
- g_string_prepend (full_name, "/");
+ g_string_prepend_c (full_name, '/');
g_string_prepend (full_name, e_ews_folder_get_escaped_name (folder));
}
}
- g_string_prepend (full_name, "/");
+ g_string_prepend_c (full_name, '/');
g_string_prepend (full_name, EWS_PUBLIC_FOLDER_ROOT_DISPLAY_NAME);
return g_string_free (full_name, FALSE);
diff --git a/src/camel/camel-ews-utils.c b/src/camel/camel-ews-utils.c
index 92db0ceb..4bc9565c 100644
--- a/src/camel/camel-ews-utils.c
+++ b/src/camel/camel-ews-utils.c
@@ -663,13 +663,13 @@ form_email_string_from_mb (EEwsConnection *cnc,
str = g_string_new ("");
if (mb->name && mb->name[0]) {
g_string_append (str, mb->name);
- g_string_append (str, " ");
+ g_string_append_c (str, ' ');
}
if (mb->email || email) {
- g_string_append (str, "<");
+ g_string_append_c (str, '<');
g_string_append (str, email ? email : mb->email);
- g_string_append (str, ">");
+ g_string_append_c (str, '>');
}
return g_string_free (str, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]