r22257 - gnucash/trunk/src - G_CONST_RETURN is deprecated in 2.3. Patch provided by Aurimas Fišeras.

Cristian Marchi cmarchi at code.gnucash.org
Mon Jul 2 14:07:01 EDT 2012


Author: cmarchi
Date: 2012-07-02 14:07:01 -0400 (Mon, 02 Jul 2012)
New Revision: 22257
Trac: http://svn.gnucash.org/trac/changeset/22257

Modified:
   gnucash/trunk/src/gnome-utils/gnc-date-edit.c
   gnucash/trunk/src/import-export/aqbanking/gnc-ab-kvp.c
   gnucash/trunk/src/libqof/qof/guid.c
   gnucash/trunk/src/libqof/qof/guid.h
Log:
G_CONST_RETURN is deprecated in 2.3. Patch provided by Aurimas Fišeras.

Modified: gnucash/trunk/src/gnome-utils/gnc-date-edit.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-date-edit.c	2012-07-02 18:03:27 UTC (rev 22256)
+++ gnucash/trunk/src/gnome-utils/gnc-date-edit.c	2012-07-02 18:07:01 UTC (rev 22257)
@@ -747,7 +747,7 @@
 date_accel_key_press(GtkWidget *widget, GdkEventKey *event, gpointer data)
 {
     GNCDateEdit *gde = data;
-    G_CONST_RETURN char *string;
+    const char *string;
     struct tm tm;
 
     string = gtk_entry_get_text (GTK_ENTRY (widget));

Modified: gnucash/trunk/src/import-export/aqbanking/gnc-ab-kvp.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/gnc-ab-kvp.c	2012-07-02 18:03:27 UTC (rev 22256)
+++ gnucash/trunk/src/import-export/aqbanking/gnc-ab-kvp.c	2012-07-02 18:07:01 UTC (rev 22257)
@@ -45,7 +45,7 @@
 static kvp_frame *gnc_ab_get_account_kvp(const Account *a, gboolean create);
 static kvp_frame *gnc_ab_get_book_kvp(QofBook *b, gboolean create);
 
-G_CONST_RETURN gchar *
+const gchar *
 gnc_ab_get_account_accountid(const Account *a)
 {
     kvp_frame *frame = gnc_ab_get_account_kvp(a, FALSE);
@@ -64,7 +64,7 @@
     xaccAccountCommitEdit(a);
 }
 
-G_CONST_RETURN gchar *
+const gchar *
 gnc_ab_get_account_bankcode(const Account *a)
 {
     kvp_frame *frame = gnc_ab_get_account_kvp(a, FALSE);

Modified: gnucash/trunk/src/libqof/qof/guid.c
===================================================================
--- gnucash/trunk/src/libqof/qof/guid.c	2012-07-02 18:03:27 UTC (rev 22256)
+++ gnucash/trunk/src/libqof/qof/guid.c	2012-07-02 18:07:01 UTC (rev 22257)
@@ -71,7 +71,7 @@
  *
  * @return the value stored in @a value
  */
-G_CONST_RETURN GncGUID*
+const GncGUID*
 gnc_value_get_guid (const GValue *value)
 {
     GncGUID *val;

Modified: gnucash/trunk/src/libqof/qof/guid.h
===================================================================
--- gnucash/trunk/src/libqof/qof/guid.h	2012-07-02 18:03:27 UTC (rev 22256)
+++ gnucash/trunk/src/libqof/qof/guid.h	2012-07-02 18:07:01 UTC (rev 22257)
@@ -64,7 +64,7 @@
 #define GNC_VALUE_HOLDS_GUID(value) G_VALUE_HOLDS(value, GNC_TYPE_GUID)
 
 GType gnc_guid_get_type (void);
-G_CONST_RETURN GncGUID* gnc_value_get_guid (const GValue *value);
+const GncGUID* gnc_value_get_guid (const GValue *value);
 
 /** number of characters needed to encode a guid as a string
  * not including the null terminator. */



More information about the gnucash-changes mailing list