]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Do not mark simple-type out-parameters as nullable
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 2 Jun 2018 15:20:24 +0000 (17:20 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 2 Jun 2018 15:23:02 +0000 (17:23 +0200)
Fixes g_utf8_*, g_ucs4_* and g_utf16_ bindings which were introduced with
5c5245d1ca3616c0d4f861efff07418ddc67e294

Fixes https://gitlab.gnome.org/GNOME/vala/issues/634

vapi/glib-2.0.vapi

index ed31ce7583243ad20e3396e9c07b49fb27bed3d4..78a8b9cded5f715023a6987cd2c3b7704597b448 100644 (file)
@@ -1458,11 +1458,11 @@ public class string {
        }
 
        [CCode (cname = "g_utf8_to_utf16")]
-       public string16 to_utf16 (long len = -1, out long? items_read = null, out long? items_written = null) throws GLib.ConvertError;
+       public string16 to_utf16 (long len = -1, out long items_read = null, out long items_written = null) throws GLib.ConvertError;
        [CCode (cname = "g_utf8_to_ucs4")]
-       public string32 to_utf32 (long len = -1, out long? items_read = null, out long? items_written = null) throws GLib.ConvertError;
+       public string32 to_utf32 (long len = -1, out long items_read = null, out long items_written = null) throws GLib.ConvertError;
        [CCode (cname = "g_utf8_to_ucs4_fast")]
-       public string32 to_utf32_fast (long len = -1, out long? items_written = null);
+       public string32 to_utf32_fast (long len = -1, out long items_written = null);
 
 }
 
@@ -1472,9 +1472,9 @@ public class string {
 [CCode (cname = "gunichar", const_cname = "const gunichar", free_function = "g_free", cheader_filename = "glib.h")]
 public class string32 {
        [CCode (cname = "g_ucs4_to_utf16")]
-       public string16 to_utf16 (long len = -1, out long? items_read = null, out long? items_written = null) throws GLib.ConvertError;
+       public string16 to_utf16 (long len = -1, out long items_read = null, out long items_written = null) throws GLib.ConvertError;
        [CCode (cname = "g_ucs4_to_utf8")]
-       public string to_utf8 (long len = -1, out long? items_read = null, out long? items_written = null) throws GLib.ConvertError;
+       public string to_utf8 (long len = -1, out long items_read = null, out long items_written = null) throws GLib.ConvertError;
 
        public string? to_string () {
                try {
@@ -1491,9 +1491,9 @@ public class string32 {
 [CCode (cname = "gunichar2", const_cname = "const gunichar2", free_function = "g_free", cheader_filename = "glib.h")]
 public class string16 {
        [CCode (cname = "g_utf16_to_ucs4")]
-       public string32 to_utf32 (long len = -1, out long? items_read = null, out long? items_written = null) throws GLib.ConvertError;
+       public string32 to_utf32 (long len = -1, out long items_read = null, out long items_written = null) throws GLib.ConvertError;
        [CCode (cname = "g_utf16_to_utf8")]
-       public string to_utf8 (long len = -1, out long? items_read = null, out long? items_written = null) throws GLib.ConvertError;
+       public string to_utf8 (long len = -1, out long items_read = null, out long items_written = null) throws GLib.ConvertError;
 
        public string? to_string () {
                try {