Mercurial > pidgin
changeset 22622:93c40e412b54
constify the return value from purple_notify_user_info_entry_get_label
and purple_notify_user_info_entry_get_value. I didn't see any reason
for these to be non-const, and I don't believe this breaks API
compatibility.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 03 Apr 2008 23:41:57 +0000 |
parents | 7612deb3a95a |
children | 76af23621e19 |
files | libpurple/notify.c libpurple/notify.h |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/notify.c Thu Apr 03 23:41:06 2008 +0000 +++ b/libpurple/notify.c Thu Apr 03 23:41:57 2008 +0000 @@ -586,7 +586,7 @@ } -gchar * +const gchar * purple_notify_user_info_entry_get_label(PurpleNotifyUserInfoEntry *user_info_entry) { g_return_val_if_fail(user_info_entry != NULL, NULL); @@ -603,7 +603,7 @@ user_info_entry->label = g_strdup(label); } -gchar * +const gchar * purple_notify_user_info_entry_get_value(PurpleNotifyUserInfoEntry *user_info_entry) { g_return_val_if_fail(user_info_entry != NULL, NULL);
--- a/libpurple/notify.h Thu Apr 03 23:41:06 2008 +0000 +++ b/libpurple/notify.h Thu Apr 03 23:41:57 2008 +0000 @@ -596,7 +596,7 @@ * * @result The label */ -gchar *purple_notify_user_info_entry_get_label(PurpleNotifyUserInfoEntry *user_info_entry); +const gchar *purple_notify_user_info_entry_get_label(PurpleNotifyUserInfoEntry *user_info_entry); /** * Set the label for a PurpleNotifyUserInfoEntry @@ -613,7 +613,7 @@ * * @result The value */ -gchar *purple_notify_user_info_entry_get_value(PurpleNotifyUserInfoEntry *user_info_entry); +const gchar *purple_notify_user_info_entry_get_value(PurpleNotifyUserInfoEntry *user_info_entry); /** * Set the value for a PurpleNotifyUserInfoEntry