pidgin: bae52150: constify the return value from purple_no...

markdoliner at pidgin.im markdoliner at pidgin.im
Thu Apr 3 19:55:56 EDT 2008


-----------------------------------------------------------------
Revision: bae52150c3c1c2f9fd3d1e68a2803acd2346a4c5
Ancestor: e1c0abcc49e802bda3f5092d9381b588756e38b5
Author: markdoliner at pidgin.im
Date: 2008-04-03T23:41:57
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/bae52150c3c1c2f9fd3d1e68a2803acd2346a4c5

Modified files:
        libpurple/notify.c libpurple/notify.h

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- libpurple/notify.c	74e804e929ac977b4fd65e2d643bd2d5f1937bcd
+++ libpurple/notify.c	1dcecb63e5f9284c2ef99d6de37efd74bbd192e1
@@ -586,7 +586,7 @@ purple_notify_user_info_get_text_with_ne
 }
 
 
-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 @@ purple_notify_user_info_entry_set_label(
 	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);
============================================================
--- libpurple/notify.h	f9c50023d6e5019041a24b08feaae0989c33d8e9
+++ libpurple/notify.h	4d2b614fe372325ed43d83900bbb8bbbe17948c7
@@ -596,7 +596,7 @@ void purple_notify_user_info_remove_last
  *
  * @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 @@ void purple_notify_user_info_entry_set_l
  *
  * @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


More information about the Commits mailing list