diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-10-08 16:33:31 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-10-08 16:33:31 +0200 |
commit | 48ca4e0fc480c3610e3a115376b86a1cee6c68f2 (patch) | |
tree | af31fc772a39db31505b16e427dd71dad0b57ace /gee/hashmap.vala | |
parent | 3ddd120776b93714a14d7ea1af00fb9c89a3a27b (diff) | |
download | vala-48ca4e0fc480c3610e3a115376b86a1cee6c68f2.tar.gz |
Add missing generic-type arguments of delegates
https://bugzilla.gnome.org/show_bug.cgi?id=772204
Diffstat (limited to 'gee/hashmap.vala')
-rw-r--r-- | gee/hashmap.vala | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gee/hashmap.vala b/gee/hashmap.vala index 33c2ef9bd..9085f10e4 100644 --- a/gee/hashmap.vala +++ b/gee/hashmap.vala @@ -32,15 +32,15 @@ public class Vala.HashMap<K,V> : Map<K,V> { get { return _nnodes; } } - public HashFunc key_hash_func { + public HashFunc<K> key_hash_func { set { _key_hash_func = value; } } - public EqualFunc key_equal_func { + public EqualFunc<K> key_equal_func { set { _key_equal_func = value; } } - public EqualFunc value_equal_func { + public EqualFunc<V> value_equal_func { set { _value_equal_func = value; } } @@ -51,14 +51,14 @@ public class Vala.HashMap<K,V> : Map<K,V> { // concurrent modification protection private int _stamp = 0; - private HashFunc _key_hash_func; - private EqualFunc _key_equal_func; - private EqualFunc _value_equal_func; + private HashFunc<K> _key_hash_func; + private EqualFunc<K> _key_equal_func; + private EqualFunc<V> _value_equal_func; private const int MIN_SIZE = 11; private const int MAX_SIZE = 13845163; - public HashMap (HashFunc key_hash_func = GLib.direct_hash, EqualFunc key_equal_func = GLib.direct_equal, EqualFunc value_equal_func = GLib.direct_equal) { + public HashMap (HashFunc<K> key_hash_func = GLib.direct_hash, EqualFunc<K> key_equal_func = GLib.direct_equal, EqualFunc<V> value_equal_func = GLib.direct_equal) { this.key_hash_func = key_hash_func; this.key_equal_func = key_equal_func; this.value_equal_func = value_equal_func; |