Change *_func properties from construct to private set
authorDidier 'Ptitjes <ptitjes@free.fr>
Wed, 26 Aug 2009 13:38:49 +0000 (15:38 +0200)
committerDidier 'Ptitjes <ptitjes@free.fr>
Wed, 2 Sep 2009 17:24:36 +0000 (19:24 +0200)
Removing construct properties enables to use Vala's constructor chain up.

gee/arraylist.vala
gee/hashmap.vala
gee/hashset.vala
gee/linkedlist.vala
gee/treemap.vala
gee/treeset.vala

index 23c885a..ea25575 100644 (file)
@@ -32,7 +32,7 @@ public class Gee.ArrayList<G> : AbstractList<G> {
                get { return _size; }
        }
 
-       public EqualFunc equal_func { construct; get; }
+       public EqualFunc equal_func { private set; get; }
 
        private G[] _items = new G[4];
        private int _size;
index d469743..32cef09 100644 (file)
@@ -32,11 +32,11 @@ public class Gee.HashMap<K,V> : Gee.AbstractMap<K,V> {
                get { return _nnodes; }
        }
 
-       public HashFunc key_hash_func { construct; get; }
+       public HashFunc key_hash_func { private set; get; }
 
-       public EqualFunc key_equal_func { construct; get; }
+       public EqualFunc key_equal_func { private set; get; }
 
-       public EqualFunc value_equal_func { construct; get; }
+       public EqualFunc value_equal_func { private set; get; }
 
        private int _array_size;
        private int _nnodes;
index b869b29..65d67bd 100644 (file)
@@ -32,9 +32,9 @@ public class Gee.HashSet<G> : AbstractCollection<G>, Set<G> {
                get { return _nnodes; }
        }
 
-       public HashFunc hash_func { construct; get; }
+       public HashFunc hash_func { private set; get; }
 
-       public EqualFunc equal_func { construct; get; }
+       public EqualFunc equal_func { private set; get; }
 
        private int _array_size;
        private int _nnodes;
index 9e54ac4..823d055 100644 (file)
@@ -33,7 +33,7 @@ public class Gee.LinkedList<G> : AbstractList<G> {
        private Node? _head = null;
        private Node? _tail = null;
 
-       public EqualFunc equal_func { construct; get; }
+       public EqualFunc equal_func { private set; get; }
 
        public LinkedList (EqualFunc equal_func = direct_equal) {
                this.equal_func = equal_func;
index d816854..062312d 100644 (file)
@@ -30,8 +30,8 @@ public class Gee.TreeMap<K,V> : Gee.AbstractMap<K,V> {
                get { return _size; }
        }
 
-       public CompareFunc key_compare_func { construct; get; }
-       public EqualFunc value_equal_func { construct; get; }
+       public CompareFunc key_compare_func { private set; get; }
+       public EqualFunc value_equal_func { private set; get; }
 
        private int _size = 0;
 
index 31f9876..83120cf 100644 (file)
@@ -30,7 +30,7 @@ public class Gee.TreeSet<G> : AbstractCollection<G>, Set<G> {
                get {return _size;}
        }
 
-       public CompareFunc compare_func { construct; get; }
+       public CompareFunc compare_func { private set; get; }
 
        private int _size = 0;