[gxml] GomMap: Renamed get() to item() for backward API compatibility
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] GomMap: Renamed get() to item() for backward API compatibility
- Date: Thu, 8 Feb 2018 15:59:34 +0000 (UTC)
commit de938c00cb79590e25144183392d81534f62ce4d
Author: Daniel Espinosa <esodan gmail com>
Date: Thu Feb 8 09:44:57 2018 -0600
GomMap: Renamed get() to item() for backward API compatibility
gxml/GomCollections.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gxml/GomCollections.vala b/gxml/GomCollections.vala
index 43f82a0..2046f22 100644
--- a/gxml/GomCollections.vala
+++ b/gxml/GomCollections.vala
@@ -382,7 +382,7 @@ public interface GXml.GomMap : Object, GomCollection, Traversable<DomElement>, I
/**
* Returns an {@link DomElement} in the collection using a string key.
*/
- public abstract DomElement? get (string key);
+ public abstract DomElement? item (string key);
/**
* Returns true if @key is used in collection.
*/
@@ -531,6 +531,7 @@ public class GXml.GomHashMap : GXml.BaseCollection, GomMap {
public override void clear () {
_hashtable = new HashMap<string,int> ();
}
+ public DomElement? item (string key) { return get (key); }
public Gee.Set<string> keys_set {
owned get {
var l = new HashSet<string> ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]