[vala/0.44] tokyocabinet: Fix deprecation warnings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.44] tokyocabinet: Fix deprecation warnings
- Date: Sat, 5 Oct 2019 12:10:34 +0000 (UTC)
commit a5415d3ea85c530e8a22a2c6d442e221474a8d7d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Oct 5 12:17:39 2019 +0200
tokyocabinet: Fix deprecation warnings
vapi/tokyocabinet.vapi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vapi/tokyocabinet.vapi b/vapi/tokyocabinet.vapi
index 019743bd6..af999f91f 100644
--- a/vapi/tokyocabinet.vapi
+++ b/vapi/tokyocabinet.vapi
@@ -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")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]