[gxml] CharacterData, Implementation, Node.vala: change protected functions to internal, so they aren't expos



commit 24e25190560eb502642a6e4f8c5b01f22e12b43b
Author: Richard Schwarting <aquarichy gmail com>
Date:   Wed Oct 2 10:01:59 2013 -0400

    CharacterData,Implementation,Node.vala: change protected functions to internal, so they aren't exposed in 
C

 gxml/CharacterData.vala  |    2 +-
 gxml/Implementation.vala |    2 +-
 gxml/Node.vala           |    6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gxml/CharacterData.vala b/gxml/CharacterData.vala
index e0f7d3d..3c71c74 100644
--- a/gxml/CharacterData.vala
+++ b/gxml/CharacterData.vala
@@ -70,7 +70,7 @@ namespace GXml {
                        // TODO: if this was this (), it would recurse infinitely, maybe valac could detect 
that
                }
 
-               protected bool check_index_size (string method, int length, ulong offset, ulong? count) {
+               internal bool check_index_size (string method, int length, ulong offset, ulong? count) {
                        if (offset < 0) {
                                GXml.warning (DomException.INDEX_SIZE, "%s called with offset '%lu' for data 
of length '%lu'".printf (method, offset, length));
                                return false;
diff --git a/gxml/Implementation.vala b/gxml/Implementation.vala
index 795fc82..366a0a7 100644
--- a/gxml/Implementation.vala
+++ b/gxml/Implementation.vala
@@ -68,7 +68,7 @@ namespace GXml {
                }
 
                // Not using Node's, because this doctype shouldn't have ANY owner yet
-               protected void check_wrong_document (DocumentType? doctype) {
+               internal void check_wrong_document (DocumentType? doctype) {
                        if (doctype != null && doctype.owner_document != null) {
                                GXml.warning (DomException.WRONG_DOCUMENT, "The supplied doctype is already 
connected to an existing document.");
                        }
diff --git a/gxml/Node.vala b/gxml/Node.vala
index c907ae5..2b03e29 100644
--- a/gxml/Node.vala
+++ b/gxml/Node.vala
@@ -48,7 +48,7 @@ namespace GXml {
 
                /* Utility methods */
 
-               protected void check_wrong_document (Node node) {
+               internal void check_wrong_document (Node node) {
                        Document this_doc;
 
                        if (this.node_type == NodeType.DOCUMENT) {
@@ -63,7 +63,7 @@ namespace GXml {
                }
 
 
-               protected bool check_read_only () {
+               internal bool check_read_only () {
                        // TODO: protected methods appear in the generated gxml.h and in the GtkDoc, do we 
want that?
                        // TODO: introduce a concept of read-only-ness, perhaps
                        // if read-only, raise NO_MODIFICATION_ALLOWED_ERR
@@ -71,7 +71,7 @@ namespace GXml {
                }
 
 
-               public void dbg_inspect () {
+               internal void dbg_inspect () {
                        message ("node: %s", this.node_name);
                        message ("  ns (prefix: %s, uri: %s)", this.prefix, this.namespace_uri);
                        if (this.attributes != null) {


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