[libgee] Change *_func properties from construct to private set
- From: Didier 'Ptitjes' Villevalois <dvillevalois src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgee] Change *_func properties from construct to private set
- Date: Wed, 2 Sep 2009 17:39:48 +0000 (UTC)
commit 19be96f9fad6f8e28e7c5ef20b3009625b59cb3a
Author: Didier 'Ptitjes <ptitjes free fr>
Date: Wed Aug 26 15:38:49 2009 +0200
Change *_func properties from construct to private set
Removing construct properties enables to use Vala's constructor chain up.
gee/arraylist.vala | 2 +-
gee/hashmap.vala | 6 +++---
gee/hashset.vala | 4 ++--
gee/linkedlist.vala | 2 +-
gee/treemap.vala | 4 ++--
gee/treeset.vala | 2 +-
6 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gee/arraylist.vala b/gee/arraylist.vala
index 23c885a..ea25575 100644
--- a/gee/arraylist.vala
+++ b/gee/arraylist.vala
@@ -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;
diff --git a/gee/hashmap.vala b/gee/hashmap.vala
index d469743..32cef09 100644
--- a/gee/hashmap.vala
+++ b/gee/hashmap.vala
@@ -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;
diff --git a/gee/hashset.vala b/gee/hashset.vala
index b869b29..65d67bd 100644
--- a/gee/hashset.vala
+++ b/gee/hashset.vala
@@ -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;
diff --git a/gee/linkedlist.vala b/gee/linkedlist.vala
index 9e54ac4..823d055 100644
--- a/gee/linkedlist.vala
+++ b/gee/linkedlist.vala
@@ -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;
diff --git a/gee/treemap.vala b/gee/treemap.vala
index d816854..062312d 100644
--- a/gee/treemap.vala
+++ b/gee/treemap.vala
@@ -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;
diff --git a/gee/treeset.vala b/gee/treeset.vala
index 31f9876..83120cf 100644
--- a/gee/treeset.vala
+++ b/gee/treeset.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]