[gxml] XProcessingInstruction: renamed GProcessingInistruction



commit 1183045a0b5bea42c0416c60bdf0b82bcd385f96
Author: Daniel Espinosa <esodan gmail com>
Date:   Thu Jul 4 22:23:36 2019 -0500

    XProcessingInstruction: renamed GProcessingInistruction

 gxml/GXmlDocument.vala                                               | 2 +-
 gxml/GXmlNode.vala                                                   | 2 +-
 gxml/{GXmlProcessingInstruction.vala => XProcessingInstruction.vala} | 4 ++--
 gxml/meson.build                                                     | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gxml/GXmlDocument.vala b/gxml/GXmlDocument.vala
index da5e58c..9ef7124 100644
--- a/gxml/GXmlDocument.vala
+++ b/gxml/GXmlDocument.vala
@@ -124,7 +124,7 @@ public class GXml.GDocument : GXml.GNode,
   public GXml.DomNode create_pi (string target, string data)
   {
     var pi = doc->new_pi (target, data);
-    return new GProcessingInstruction (this, pi);
+    return new XProcessingInstruction (this, pi);
   }
 
   public GXml.DomNode create_text (string text)
diff --git a/gxml/GXmlNode.vala b/gxml/GXmlNode.vala
index a7d0360..2f6929e 100644
--- a/gxml/GXmlNode.vala
+++ b/gxml/GXmlNode.vala
@@ -108,7 +108,7 @@ public abstract class GXml.GNode : Object,
       case GXml.NodeType.ENTITY:
         return nullnode;
       case GXml.NodeType.PROCESSING_INSTRUCTION:
-        return new GProcessingInstruction (doc, node);
+        return new XProcessingInstruction (doc, node);
       case GXml.NodeType.COMMENT:
         return new XComment (doc, node);
       case GXml.NodeType.DOCUMENT:
diff --git a/gxml/GXmlProcessingInstruction.vala b/gxml/XProcessingInstruction.vala
similarity index 90%
rename from gxml/GXmlProcessingInstruction.vala
rename to gxml/XProcessingInstruction.vala
index 518b198..b8b50c1 100644
--- a/gxml/GXmlProcessingInstruction.vala
+++ b/gxml/XProcessingInstruction.vala
@@ -25,10 +25,10 @@ using Gee;
  * DOM4 Class implemeting {@link GXml.ProcessingInstruction} and
  * {@link DomProcessingInstruction} interface, powered by libxml2 library.
  */
-public class GXml.GProcessingInstruction : GXml.XCharacterData,
+public class GXml.XProcessingInstruction : GXml.XCharacterData,
               GXml.DomProcessingInstruction
 {
-  public GProcessingInstruction (GDocument doc, Xml.Node *node)
+  public XProcessingInstruction (GDocument doc, Xml.Node *node)
   {
     _node = node;
     _doc = doc;
diff --git a/gxml/meson.build b/gxml/meson.build
index 10888ea..d577f6a 100644
--- a/gxml/meson.build
+++ b/gxml/meson.build
@@ -76,7 +76,6 @@ valasources = files ([
        'GXmlNamespace.vala',
        'GXmlNode.vala',
        'GXmlParser.vala',
-       'GXmlProcessingInstruction.vala',
        'GXPathObject.vala',
        'Namespace.vala',
        'NodeType.vala',
@@ -88,6 +87,7 @@ valasources = files ([
        'XHashMapAttr.vala',
        'XParser.vala',
        'XPath.vala',
+       'XProcessingInstruction.vala',
        'XText.vala',
 ])
 


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