Mercurial > pidgin.yaz
diff libpurple/notify.c @ 22605: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 | 89c7be36fd61 |
children | 5e6b42e77fb7 3c26ef82d556 |
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);