Thu, 03 Apr 2008 23:41:57 +0000
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.
| libpurple/notify.c | file | annotate | diff | comparison | revisions | |
| libpurple/notify.h | file | annotate | diff | comparison | revisions |
--- 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