[evolution-data-server] Correct const/no-const argument of the camel_message_info_set_dirty()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Correct const/no-const argument of the camel_message_info_set_dirty()
- Date: Tue, 22 Nov 2016 13:10:08 +0000 (UTC)
commit 6bab068e755aec27876ab913a62236fe1b39f9a5
Author: Milan Crha <mcrha redhat com>
Date: Tue Nov 22 14:00:32 2016 +0100
Correct const/no-const argument of the camel_message_info_set_dirty()
As it's a 'set' function, the argument cannot be 'const'.
Also remove obsolete information from its developer comment.
src/camel/camel-message-info.c | 5 ++---
src/camel/camel-message-info.h | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/camel/camel-message-info.c b/src/camel/camel-message-info.c
index 01664e3..d192327 100644
--- a/src/camel/camel-message-info.c
+++ b/src/camel/camel-message-info.c
@@ -1228,13 +1228,12 @@ camel_message_info_get_dirty (const CamelMessageInfo *mi)
* @dirty: a dirty state to set
*
* Marks the @mi as dirty, which means a save to the local summary
- * is required. In case the @dirty is %TRUE and the @mi is not aborting notifications,
- * the 'dirty-stamp' changes too.
+ * is required.
*
* Since: 3.24
**/
void
-camel_message_info_set_dirty (const CamelMessageInfo *mi,
+camel_message_info_set_dirty (CamelMessageInfo *mi,
gboolean dirty)
{
gboolean changed, abort_notifications;
diff --git a/src/camel/camel-message-info.h b/src/camel/camel-message-info.h
index 7b355cb..cd2bcb9 100644
--- a/src/camel/camel-message-info.h
+++ b/src/camel/camel-message-info.h
@@ -212,7 +212,7 @@ void camel_message_info_property_lock
void camel_message_info_property_unlock
(const CamelMessageInfo *mi);
gboolean camel_message_info_get_dirty (const CamelMessageInfo *mi);
-void camel_message_info_set_dirty (const CamelMessageInfo *mi,
+void camel_message_info_set_dirty (CamelMessageInfo *mi,
gboolean dirty);
gboolean camel_message_info_get_folder_flagged
(const CamelMessageInfo *mi);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]