[vala/0.40] javascriptcoregtk-4.0: buffer of String.get_utf8_cstring() is not "ref"



commit 06050854acdab0ce6b0feadd3b6635293efcac0d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun May 20 12:55:58 2018 +0200

    javascriptcoregtk-4.0: buffer of String.get_utf8_cstring() is not "ref"
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788113

 vapi/javascriptcoregtk-4.0.vapi              |    2 +-
 vapi/metadata/JavaScriptCore-4.0-custom.vala |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapi/javascriptcoregtk-4.0.vapi b/vapi/javascriptcoregtk-4.0.vapi
index c937cae..4ddd4ef 100644
--- a/vapi/javascriptcoregtk-4.0.vapi
+++ b/vapi/javascriptcoregtk-4.0.vapi
@@ -54,7 +54,7 @@ namespace JS {
                [CCode (cname = "JSStringGetMaximumUTF8CStringSize")]
                public size_t get_maximum_utf8_cstring_size ();
                [CCode (cname = "JSStringGetUTF8CString")]
-               public size_t get_utf8_cstring ([CCode (array_length_type = "gsize")] ref uint8[] buffer);
+               public size_t get_utf8_cstring ([CCode (array_length_type = "gsize")] uint8[] buffer);
                [CCode (cname = "JSStringIsEqual")]
                public bool is_equal (JS.String b);
                [CCode (cname = "JSStringIsEqualToUTF8CString")]
diff --git a/vapi/metadata/JavaScriptCore-4.0-custom.vala b/vapi/metadata/JavaScriptCore-4.0-custom.vala
index 2a1125f..bcd5767 100644
--- a/vapi/metadata/JavaScriptCore-4.0-custom.vala
+++ b/vapi/metadata/JavaScriptCore-4.0-custom.vala
@@ -57,7 +57,7 @@ namespace JS {
                [CCode (cname = "JSStringGetMaximumUTF8CStringSize")]
                public size_t get_maximum_utf8_cstring_size ();
                [CCode (cname = "JSStringGetUTF8CString")]
-               public size_t get_utf8_cstring ([CCode (array_length_type = "gsize")] ref uint8[] buffer);
+               public size_t get_utf8_cstring ([CCode (array_length_type = "gsize")] uint8[] buffer);
                [CCode (cname = "JSStringIsEqual")]
                public bool is_equal (JS.String b);
                [CCode (cname = "JSStringIsEqualToUTF8CString")]


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