]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tokyocabinet: Fix deprecation warnings
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 5 Oct 2019 10:17:39 +0000 (12:17 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 5 Oct 2019 11:45:55 +0000 (13:45 +0200)
vapi/tokyocabinet.vapi

index 019743bd6e39836160e4031ded4e4375dd7f47f5..af999f91f255e3a126f52820e351b45cb7f3fd11 100644 (file)
@@ -439,7 +439,7 @@ namespace TokyoCabinet {
                }
                public string? get_string (string key) {
                        unowned uint8[] kbuf = (uint8[]) key;
-                       kbuf.length = (int) key.size ();
+                       kbuf.length = key.length;
                        return (string) this.get (kbuf);
                }
                [CCode (cname = "tcndbvsiz")]
@@ -585,7 +585,7 @@ namespace TokyoCabinet {
                [CCode (cname = "_vala_tchdbget2")]
                public string? get_string (string key) {
                        unowned uint8[] kbuf = (uint8[]) key;
-                       kbuf.length = (int) key.size ();
+                       kbuf.length = key.length;
                        return (string) this.get (kbuf);
                }
                [CCode (cname = "tchdbvsiz")]
@@ -730,7 +730,7 @@ namespace TokyoCabinet {
                }
                public string? get_string (string key) {
                        unowned uint8[] k = (uint8[]) key;
-                       k.length = (int) key.size ();
+                       k.length = key.length;
                        return (string) this._get (k);
                }
                [CCode (cname = "tcbdbget4")]