[gxml] Renamed CDATASection class to xCDATASection



commit 627506c512c7f98b262cee21e735f83d9b713984
Author: Daniel Espinosa <esodan gmail com>
Date:   Tue May 12 11:58:32 2015 -0500

    Renamed CDATASection class to xCDATASection

 gxml/libxml-CDATASection.vala |    4 ++--
 gxml/libxml-Document.vala     |    8 ++++----
 test/DocumentTest.vala        |    2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gxml/libxml-CDATASection.vala b/gxml/libxml-CDATASection.vala
index e7cb4ec..4baab1f 100644
--- a/gxml/libxml-CDATASection.vala
+++ b/gxml/libxml-CDATASection.vala
@@ -36,8 +36,8 @@ namespace GXml {
         * {{{ <![CDATA[Here contains non-XML data, like code, or something that requires a lot of special 
XML entities.]]>.}}}
         * It is a type of Text node. For more, see: 
[[http://www.w3.org/TR/DOM-Level-1/level-one-core.html#ID-667469212]]
         */
-       public class CDATASection : xText, GXml.CDATA {
-               internal CDATASection (Xml.Node *cdata_node, xDocument doc) {
+       public class xCDATASection : xText, GXml.CDATA {
+               internal xCDATASection (Xml.Node *cdata_node, xDocument doc) {
                        base (cdata_node, doc);
                }
                /**
diff --git a/gxml/libxml-Document.vala b/gxml/libxml-Document.vala
index b50c18d..3fb705e 100644
--- a/gxml/libxml-Document.vala
+++ b/gxml/libxml-Document.vala
@@ -116,7 +116,7 @@ namespace GXml {
                                        new xText (xmlnode, this);
                                        break;
                                case NodeType.CDATA_SECTION:
-                                       new CDATASection (xmlnode, this);
+                                       new xCDATASection (xmlnode, this);
                                        break;
                                case NodeType.COMMENT:
                                        new xComment (xmlnode, this);
@@ -705,11 +705,11 @@ namespace GXml {
                 * @return A new { link GXml.CDATASection} with the
                 * supplied data; this should not be freed
                 */
-               public unowned CDATASection create_cdata_section (string cdata_data) {
+               public unowned xCDATASection create_cdata_section (string cdata_data) {
                        check_not_supported_html ("CDATA section");
 
-                       CDATASection cdata = new CDATASection (this.xmldoc->new_cdata_block (cdata_data, 
(int)cdata_data.length), this);
-                       unowned CDATASection ret = cdata;
+                       xCDATASection cdata = new xCDATASection (this.xmldoc->new_cdata_block (cdata_data, 
(int)cdata_data.length), this);
+                       unowned xCDATASection ret = cdata;
                        this.nodes_to_free.append (cdata);
                        return ret;
                }
diff --git a/test/DocumentTest.vala b/test/DocumentTest.vala
index 7d2eac1..7ebf736 100644
--- a/test/DocumentTest.vala
+++ b/test/DocumentTest.vala
@@ -330,7 +330,7 @@ class DocumentTest : GXmlTest {
                        });
                Test.add_func ("/gxml/document/create_cdata_section", () => {
                                xDocument doc = get_doc ();
-                               CDATASection cdata = doc.create_cdata_section ("put in real cdata");
+                               xCDATASection cdata = doc.create_cdata_section ("put in real cdata");
 
                                assert (cdata.node_name == "#cdata-section");
                                assert (cdata.node_value == "put in real cdata");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]