diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2016-10-14 21:07:46 -0700 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2016-10-18 20:15:08 -0700 |
commit | 85c25926fba4384e23c64b27d0a2f02d966b4d8e (patch) | |
tree | e5de18a8e073ddff13d86b6165e7ec6403cf8e05 /tests/gimarshallingtests.c | |
parent | 41b074ba44bb29b405b993b2f4c72b1a66c007c9 (diff) | |
download | gobject-introspection-85c25926fba4384e23c64b27d0a2f02d966b4d8e.tar.gz |
tests: const specifier for transfer-none out array
Since we return a static const array as the out value, the function must
have a const type for its out parameter.
https://bugzilla.gnome.org/show_bug.cgi?id=772790
Diffstat (limited to 'tests/gimarshallingtests.c')
-rw-r--r-- | tests/gimarshallingtests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c index 03dc119d..da8617e9 100644 --- a/tests/gimarshallingtests.c +++ b/tests/gimarshallingtests.c @@ -1586,7 +1586,7 @@ gi_marshalling_tests_array_out_etc (gint first, gint **ints, gint *length, gint * @bools: (out) (array length=length) (transfer none): */ void -gi_marshalling_tests_array_bool_out (gboolean **bools, gint *length) +gi_marshalling_tests_array_bool_out (const gboolean **bools, gint *length) { static const gboolean values[] = { TRUE, FALSE, TRUE, TRUE }; @@ -1599,7 +1599,7 @@ gi_marshalling_tests_array_bool_out (gboolean **bools, gint *length) * @chars: (out) (array length=length) (transfer none): */ void -gi_marshalling_tests_array_unichar_out (gunichar **chars, gint *length) +gi_marshalling_tests_array_unichar_out (const gunichar **chars, gint *length) { static const gunichar values[] = GI_MARSHALLING_TESTS_CONSTANT_UCS4; *length = 12; |