gobject-introspection r925 - trunk/tests/everything



Author: johan
Date: Fri Nov 14 12:07:53 2008
New Revision: 925
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=925&view=rev

Log:
const char->char to avoid leaking the return value, as pointed out by Tommi

Modified:
   trunk/tests/everything/everything.c
   trunk/tests/everything/everything.h

Modified: trunk/tests/everything/everything.c
==============================================================================
--- trunk/tests/everything/everything.c	(original)
+++ trunk/tests/everything/everything.c	Fri Nov 14 12:07:53 2008
@@ -192,7 +192,7 @@
  * @types: (array length=n_types): List of types
  * Return value: string representation of provided types
  * */
-const char *
+char *
 test_array_gtype_in (int n_types, GType *types)
 {
   GString *string;

Modified: trunk/tests/everything/everything.h
==============================================================================
--- trunk/tests/everything/everything.h	(original)
+++ trunk/tests/everything/everything.h	Fri Nov 14 12:07:53 2008
@@ -37,7 +37,7 @@
 /* array */
 gboolean test_strv_in (char **arr);
 int test_array_int_in (int n_ints, int *ints);
-const char *test_array_gtype_in (int n_types, GType *types);
+char *test_array_gtype_in (int n_types, GType *types);
 char **test_strv_out (void);
 /* interface */
 /* GList */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]