[gxml] NodeList.vala: add a warning when appending EntityReferences, noting that we don't (yet) support tho
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] NodeList.vala: add a warning when appending EntityReferences, noting that we don't (yet) support tho
- Date: Tue, 24 Sep 2013 10:34:48 +0000 (UTC)
commit 575a1246120eadeba169b0bed88159ff34eb0904
Author: Richard Schwarting <aquarichy gmail com>
Date: Tue Sep 24 06:32:58 2013 -0400
NodeList.vala: add a warning when appending EntityReferences, noting that we don't (yet) support those
gxml/NodeList.vala | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gxml/NodeList.vala b/gxml/NodeList.vala
index 8e1e4f7..39abf97 100644
--- a/gxml/NodeList.vala
+++ b/gxml/NodeList.vala
@@ -109,7 +109,7 @@ namespace GXml {
/**
* Obtain the n'th item in the list. Like { link GLib.List.nth_data}.
- *
+ *
* @param n The index of the item to access
*
* @return The n'th item in the list
@@ -664,7 +664,11 @@ namespace GXml {
parent_as_xmlnode->add_child (((BackedNode)grand_child).node);
}
} else {
- parent_as_xmlnode->add_child (((BackedNode)new_child).node);
+ if (new_child.node_type == NodeType.ENTITY_REFERENCE) {
+ GLib.warning ("Appending EntityReferences to Nodes is not yet
supported");
+ } else {
+ parent_as_xmlnode->add_child (((BackedNode)new_child).node);
+ }
}
return new_child;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]