summaryrefslogtreecommitdiff
path: root/gee/hashmap.vala
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2008-04-13 16:17:00 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-04-13 16:17:00 +0000
commit85cfd74faae12e90275990b2b887adc9a1f71d1d (patch)
tree2cce940835212c7cd7c0854482abe9a74cbbd120 /gee/hashmap.vala
parent206cd6716043d886c6531ca358f5b442c5ea991e (diff)
downloadvala-85cfd74faae12e90275990b2b887adc9a1f71d1d.tar.gz
deprecate construct as parameter modifier, fixes bug 524138
2008-04-13 Juerg Billeter <j@bitron.ch> * vala/valaparser.vala: deprecate construct as parameter modifier, fixes bug 524138 * */*.vala: port to new syntax svn path=/trunk/; revision=1209
Diffstat (limited to 'gee/hashmap.vala')
-rw-r--r--gee/hashmap.vala17
1 files changed, 12 insertions, 5 deletions
diff --git a/gee/hashmap.vala b/gee/hashmap.vala
index 737e3f637..c4847ea02 100644
--- a/gee/hashmap.vala
+++ b/gee/hashmap.vala
@@ -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 () {