diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-04-08 18:50:59 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-04-08 19:01:07 +0200 |
commit | 5bc7138b3bb2d60b57675f67f8b7725ff5f3a0c0 (patch) | |
tree | 57c0144cca59600f37cd9151cb3e23b017042ba2 | |
parent | bed64669cac1af13ef66736cff8d301865233de8 (diff) | |
download | vala-5bc7138b3bb2d60b57675f67f8b7725ff5f3a0c0.tar.gz |
gee: Fix return-type of HashMap.MapIterator.get_key()/get_value()
They didn't match the declarations in Vala.MapIterator interface.
-rw-r--r-- | gee/hashmap.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gee/hashmap.vala b/gee/hashmap.vala index 0c2284466..dbdf436fd 100644 --- a/gee/hashmap.vala +++ b/gee/hashmap.vala @@ -258,13 +258,13 @@ public class Vala.HashMap<K,V> : Map<K,V> { return (_node != null); } - public override K? get_key () { + public override K get_key () { assert (_stamp == _map._stamp); assert (_node != null); return _node.key; } - public override V? get_value () { + public override V get_value () { assert (_stamp == _map._stamp); assert (_node != null); return _node.value; |