Commit 82072b0f authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

remove deprecated syntax for construct parameters

2008-04-13  Juerg Billeter  <j@bitron.ch>

	* gee/arraylist.vala, gee/hashmap.vala, gee/hashset.vala,
	  gee/readonlycollection.vala, gee/readonlylist.vala,
	  gee/readonlymap.vala, gee/readonlyset.vala: remove deprecated
	  syntax for construct parameters

svn path=/trunk/; revision=28
parent 7f0f164a
2008-04-13 Jürg Billeter <j@bitron.ch>
* gee/arraylist.vala, gee/hashmap.vala, gee/hashset.vala,
gee/readonlycollection.vala, gee/readonlylist.vala,
gee/readonlymap.vala, gee/readonlyset.vala: remove deprecated
syntax for construct parameters
2008-04-13 Jürg Billeter <j@bitron.ch>
* gee/arraylist.vala, gee/hashmap.vala, gee/hashset.vala: remove
......
......@@ -43,7 +43,8 @@ public class Gee.ArrayList<G> : Object, Iterable<G>, Collection<G>, List<G> {
// concurrent modification protection
private int _stamp = 0;
public ArrayList (construct EqualFunc equal_func = GLib.direct_equal) {
public ArrayList (EqualFunc equal_func = GLib.direct_equal) {
this.equal_func = equal_func;
}
public Type get_element_type () {
......@@ -165,7 +166,8 @@ public class Gee.ArrayList<G> : Object, Iterable<G>, Collection<G>, List<G> {
// concurrent modification protection
public int _stamp = 0;
public Iterator (construct ArrayList list) {
public Iterator (ArrayList list) {
this.list = list;
}
public bool next () {
......
......@@ -58,7 +58,10 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
private const int MIN_SIZE = 11;
private const int MAX_SIZE = 13845163;
public HashMap (construct HashFunc key_hash_func = GLib.direct_hash, construct EqualFunc key_equal_func = GLib.direct_equal, construct EqualFunc value_equal_func = GLib.direct_equal) {
public HashMap (HashFunc key_hash_func = GLib.direct_hash, EqualFunc key_equal_func = GLib.direct_equal, EqualFunc value_equal_func = GLib.direct_equal) {
this.key_hash_func = key_hash_func;
this.key_equal_func = key_equal_func;
this.value_equal_func = value_equal_func;
}
construct {
......@@ -185,7 +188,8 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
private HashMap<K,V> _map;
public KeySet (construct HashMap map) {
public KeySet (HashMap map) {
this.map = map;
}
public Type get_element_type () {
......@@ -232,7 +236,8 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
// concurrent modification protection
private int _stamp;
public KeyIterator (construct HashMap map) {
public KeyIterator (HashMap map) {
this.map = map;
}
public bool next () {
......@@ -260,7 +265,8 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
private HashMap<K,V> _map;
public ValueCollection (construct HashMap map) {
public ValueCollection (HashMap map) {
this.map = map;
}
public Type get_element_type () {
......@@ -313,7 +319,8 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
// concurrent modification protection
private int _stamp;
public ValueIterator (construct HashMap map) {
public ValueIterator (HashMap map) {
this.map = map;
}
public bool next () {
......
......@@ -53,7 +53,9 @@ public class Gee.HashSet<G> : Object, Iterable<G>, Collection<G>, Set<G> {
private const int MIN_SIZE = 11;
private const int MAX_SIZE = 13845163;
public HashSet (construct HashFunc hash_func = GLib.direct_hash, construct EqualFunc equal_func = GLib.direct_equal) {
public HashSet (HashFunc hash_func = GLib.direct_hash, EqualFunc equal_func = GLib.direct_equal) {
this.hash_func = hash_func;
this.equal_func = equal_func;
}
construct {
......@@ -176,7 +178,8 @@ public class Gee.HashSet<G> : Object, Iterable<G>, Collection<G>, Set<G> {
// concurrent modification protection
private int _stamp = 0;
public Iterator (construct HashSet set) {
public Iterator (HashSet set) {
this.set = set;
}
public bool next () {
......
......@@ -36,7 +36,8 @@ public class Gee.ReadOnlyCollection<G> : Object, Iterable<G>, Collection<G> {
private Collection<G> _collection;
public ReadOnlyCollection (construct Collection<G> collection = null) {
public ReadOnlyCollection (Collection<G> collection = null) {
this.collection = collection;
}
public Type get_element_type () {
......
......@@ -36,7 +36,8 @@ public class Gee.ReadOnlyList<G> : Object, Iterable<G>, Collection<G>, List<G> {
private List<G> _list;
public ReadOnlyList (construct List<G> list = null) {
public ReadOnlyList (List<G> list = null) {
this.list = list;
}
public Type get_element_type () {
......
......@@ -36,7 +36,8 @@ public class Gee.ReadOnlyMap<K,V> : Object, Map<K,V> {
private Map<K,V> _map;
public ReadOnlyMap (construct Map<K,V> map = null) {
public ReadOnlyMap (Map<K,V> map = null) {
this.map = map;
}
public Set<K> get_keys () {
......
......@@ -36,7 +36,8 @@ public class Gee.ReadOnlySet<G> : Object, Iterable<G>, Collection<G>, Set<G> {
private Set<G> _set;
public ReadOnlySet (construct Set<G> set = null) {
public ReadOnlySet (Set<G> set = null) {
this.set = set;
}
public Type get_element_type () {
......
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