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.38.10~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49cc26ab95fee0827c8809bf362afe7c829f414d;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 c937cae11..4ddd4ef44 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 2a1125fd3..bcd5767a3 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")]