[libgee/0.4.x: 5/11] Fix ReadOnlyCollection and ReadOnlyMap encapsulation failure
- From: Didier Villevalois <dvillevalois src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgee/0.4.x: 5/11] Fix ReadOnlyCollection and ReadOnlyMap encapsulation failure
- Date: Mon, 28 Sep 2009 16:28:36 +0000 (UTC)
commit 7a884ade0cd711d96dea00b5a7b0194a59a2eae1
Author: Didier 'Ptitjes <ptitjes free fr>
Date: Mon Sep 7 00:38:53 2009 +0200
Fix ReadOnlyCollection and ReadOnlyMap encapsulation failure
gee/readonlycollection.vala | 8 ++------
gee/readonlymap.vala | 6 +-----
2 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/gee/readonlycollection.vala b/gee/readonlycollection.vala
index 870eb1c..2893ef1 100644
--- a/gee/readonlycollection.vala
+++ b/gee/readonlycollection.vala
@@ -34,14 +34,10 @@ public class Gee.ReadOnlyCollection<G> : Object, Iterable<G>, Collection<G> {
get { return _collection.is_empty; }
}
- public Collection<G> collection {
- construct { _collection = value; }
- }
-
- private Collection<G> _collection;
+ protected Collection<G> _collection;
public ReadOnlyCollection (Collection<G>? collection = null) {
- this.collection = collection;
+ this._collection = collection;
}
public Type element_type {
diff --git a/gee/readonlymap.vala b/gee/readonlymap.vala
index e38fb01..9e53db3 100644
--- a/gee/readonlymap.vala
+++ b/gee/readonlymap.vala
@@ -34,14 +34,10 @@ public class Gee.ReadOnlyMap<K,V> : Object, Map<K,V> {
get { return _map.is_empty; }
}
- public Map<K,V> map {
- construct { _map = value; }
- }
-
private Map<K,V> _map;
public ReadOnlyMap (Map<K,V>? map = null) {
- this.map = map;
+ this._map = map;
}
public Set<K> get_keys () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]