[libgee] Fix ReadOnlyCollection and ReadOnlyMap encapsulation failure
- From: Didier 'Ptitjes' Villevalois <dvillevalois src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgee] Fix ReadOnlyCollection and ReadOnlyMap encapsulation failure
- Date: Sun, 6 Sep 2009 23:08:53 +0000 (UTC)
commit 1e831d506f7576029c00556ba19374806a39c94c
Author: Didier 'Ptitjes <ptitjes free fr>
Date: Mon Sep 7 00:38:53 2009 +0200
Fix ReadOnlyCollection and ReadOnlyMap encapsulation failure
gee/readonlycollection.vala | 11 ++---------
gee/readonlymap.vala | 9 +--------
2 files changed, 3 insertions(+), 17 deletions(-)
---
diff --git a/gee/readonlycollection.vala b/gee/readonlycollection.vala
index 8ef8c69..fb99885 100644
--- a/gee/readonlycollection.vala
+++ b/gee/readonlycollection.vala
@@ -47,14 +47,7 @@ public class Gee.ReadOnlyCollection<G> : Object, Iterable<G>, Collection<G> {
get { return _collection.is_empty; }
}
- /**
- * The decorated collection.
- */
- public Collection<G> collection {
- construct { _collection = value; }
- }
-
- private Collection<G> _collection;
+ protected Collection<G> _collection;
/**
* Constructs a read-only collection that mirrors the content of the
@@ -63,7 +56,7 @@ public class Gee.ReadOnlyCollection<G> : Object, Iterable<G>, Collection<G> {
* @param collection the collection to decorate (may be null).
*/
public ReadOnlyCollection (Collection<G>? collection = null) {
- this.collection = collection;
+ this._collection = collection;
}
/**
diff --git a/gee/readonlymap.vala b/gee/readonlymap.vala
index d9d7042..9b91365 100644
--- a/gee/readonlymap.vala
+++ b/gee/readonlymap.vala
@@ -47,13 +47,6 @@ public class Gee.ReadOnlyMap<K,V> : Object, Map<K,V> {
get { return _map.is_empty; }
}
- /**
- * The decorated map.
- */
- public Map<K,V> map {
- construct { _map = value; }
- }
-
private Map<K,V> _map;
/**
@@ -62,7 +55,7 @@ public class Gee.ReadOnlyMap<K,V> : Object, Map<K,V> {
* @param map the map to decorate (may be null).
*/
public ReadOnlyMap (Map<K,V>? map = null) {
- this.map = map;
+ this._map = map;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]