[libgee/0.8] Removing warnings for typeof() use



commit 3ac506304e680426e8fb7f8cfae4ca691f436a9c
Author: Daniel Espinosa <esodan gmail com>
Date:   Tue Dec 10 18:34:42 2013 -0600

    Removing warnings for typeof() use

 gee/hashmultimap.vala |    2 +-
 gee/readonlymap.vala  |    2 +-
 gee/treemultimap.vala |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gee/hashmultimap.vala b/gee/hashmultimap.vala
index d857b9d..2eddecd 100644
--- a/gee/hashmultimap.vala
+++ b/gee/hashmultimap.vala
@@ -51,7 +51,7 @@ public class Gee.HashMultiMap<K,V> : AbstractMultiMap<K,V> {
         */
        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<V>))));
+               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));
                }
diff --git a/gee/readonlymap.vala b/gee/readonlymap.vala
index 4f126cc..7d2e7bf 100644
--- a/gee/readonlymap.vala
+++ b/gee/readonlymap.vala
@@ -212,7 +212,7 @@ internal class Gee.ReadOnlyMap<K,V> : Object, Traversable<Map.Entry<K,V>>, Itera
         * { inheritDoc}
         */
        public Type element_type {
-               get { return typeof (Map.Entry<K,V>); }
+               get { return typeof (Map.Entry); }
        }
 
        /**
diff --git a/gee/treemultimap.vala b/gee/treemultimap.vala
index 51f1f43..eb7c245 100644
--- a/gee/treemultimap.vala
+++ b/gee/treemultimap.vala
@@ -42,7 +42,7 @@ public class Gee.TreeMultiMap<K,V> : AbstractMultiMap<K,V> {
         * @param value_compare_func an optional value comparator function
         */
        public TreeMultiMap (owned CompareDataFunc<K>? key_compare_func = null, owned CompareDataFunc<V>? 
value_compare_func = null) {
-               base (new TreeMap<K, Set<V>> (key_compare_func, Functions.get_equal_func_for (typeof 
(Set<V>))));
+               base (new TreeMap<K, Set<V>> (key_compare_func, Functions.get_equal_func_for (typeof (Set))));
                if (value_compare_func == null) {
                        value_compare_func = Functions.get_compare_func_for (typeof (V));
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]