]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gee: Fix return-type of HashMap.MapIterator.get_key()/get_value()
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 8 Apr 2023 16:50:59 +0000 (18:50 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 8 Apr 2023 17:01:07 +0000 (19:01 +0200)
They didn't match the declarations in Vala.MapIterator interface.

gee/hashmap.vala

index 0c2284466a21c6bdde7ac1996aaf2a618371ce88..dbdf436fd39a525f85c22e22531934410d739bd7 100644 (file)
@@ -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;