From: Rico Tzschichholz Date: Sun, 20 May 2018 10:55:58 +0000 (+0200) Subject: javascriptcoregtk-4.0: buffer of String.get_utf8_cstring() is not "ref" X-Git-Tag: 0.41.90~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd9158e404423b64e01dc453e1c5b78373a4352e;p=thirdparty%2Fvala.git javascriptcoregtk-4.0: buffer of String.get_utf8_cstring() is not "ref" https://bugzilla.gnome.org/show_bug.cgi?id=788113 --- diff --git a/vapi/javascriptcoregtk-4.0.vapi b/vapi/javascriptcoregtk-4.0.vapi index aceba5c38..39698746f 100644 --- a/vapi/javascriptcoregtk-4.0.vapi +++ b/vapi/javascriptcoregtk-4.0.vapi @@ -55,7 +55,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 b0e0e27fe..42da6694c 100644 --- a/vapi/metadata/JavaScriptCore-4.0-custom.vala +++ b/vapi/metadata/JavaScriptCore-4.0-custom.vala @@ -58,7 +58,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")]