Commit 5a35303c authored by Maciej (Matthew) Piechotka's avatar Maciej (Matthew) Piechotka
Browse files

Add generic type arguments to HashMultiMap, TreeMultiSet constructor

parent 9af15d5b
......@@ -49,8 +49,8 @@ public class Gee.HashMultiMap<K,V> : AbstractMultiMap<K,V> {
* @param value_hash_func an optional value hash function
* @param value_equal_func an optional value equality testing function
*/
public HashMultiMap (owned HashDataFunc? key_hash_func = null, owned EqualDataFunc? key_equal_func = null,
owned HashDataFunc? value_hash_func = null, owned EqualDataFunc? value_equal_func = null) {
public HashMultiMap (owned HashDataFunc<K>? key_hash_func = null, owned EqualDataFunc<K>? key_equal_func = null,
owned HashDataFunc<V>? value_hash_func = null, owned EqualDataFunc<V>? value_equal_func = null) {
base (new HashMap<K, Set<V>> (key_hash_func, key_equal_func, Functions.get_equal_func_for (typeof (Set))));
if (value_hash_func == null) {
value_hash_func = Functions.get_hash_func_for (typeof (V));
......
......@@ -37,7 +37,7 @@ public class Gee.TreeMultiSet<G> : AbstractMultiSet<G> {
*
* @param compare_func an optional element comparator function
*/
public TreeMultiSet (owned CompareDataFunc? compare_func = null) {
public TreeMultiSet (owned CompareDataFunc<G>? compare_func = null) {
base (new TreeMap<G, int> (compare_func));
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment