From c4dcaf83a3586022b01cf01a03761e10007841b1 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Fri, 7 Nov 2008 12:21:14 +0000 Subject: [PATCH] * Fixes NB#91284, removed an invalid const modified pmo-trunk-r6233 --- src/modest-tny-folder.c | 2 +- src/modest-tny-folder.h | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/modest-tny-folder.c b/src/modest-tny-folder.c index 87f6921..62149cb 100644 --- a/src/modest-tny-folder.c +++ b/src/modest-tny-folder.c @@ -104,7 +104,7 @@ modest_tny_folder_guess_folder_type (TnyFolder *folder) const gchar* -modest_tny_folder_get_help_id (const TnyFolder *folder) +modest_tny_folder_get_help_id (TnyFolder *folder) { TnyFolderType type; const gchar* help_id = NULL; diff --git a/src/modest-tny-folder.h b/src/modest-tny-folder.h index 0372a06..585739a 100644 --- a/src/modest-tny-folder.h +++ b/src/modest-tny-folder.h @@ -53,13 +53,7 @@ typedef enum { * functions for working with a TnyFolder. tinymail does not seem to offer any * easy way to cause derived TnyFolders to be instantiated. */ - -/* TODO: These "const TnyFolder*" arguments will eventually need to - * be "TnyFolder*". C cannot support constness for complex objects like C++ - * can, because it lacks the mutable keyword and doesn't allow both const - * and non-const get function overloads. - */ - + /** * modest_tny_folder_guess_type: * @folder: a valid tnymail folder @@ -138,7 +132,7 @@ ModestTnyFolderRules modest_tny_folder_get_rules (TnyFolder *folder); * * Returns: get the help_id for this folder, or NULL in case of error */ -const gchar* modest_tny_folder_get_help_id (const TnyFolder *folder); +const gchar* modest_tny_folder_get_help_id (TnyFolder *folder); /** -- 1.7.9.5