[gxml] StreamReader: avoid properties without body



commit 2d75ed85327c63428cb86e998e8f13a61274b8dc
Author: Daniel Espinosa <esodan gmail com>
Date:   Tue Jul 30 14:20:03 2019 -0500

    StreamReader: avoid properties without body
    
    Fix issue #37

 gxml/StreamReader.vala | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gxml/StreamReader.vala b/gxml/StreamReader.vala
index 127ffda..5198bd0 100644
--- a/gxml/StreamReader.vala
+++ b/gxml/StreamReader.vala
@@ -49,11 +49,13 @@ public errordomain GXml.StreamReaderError {
 public class GXml.StreamReader : GLib.Object {
   uint8[] buf = new uint8[2];
   Gee.HashMap<string,GXml.Collection> root_collections = new Gee.HashMap<string,GXml.Collection> ();
+  DataInputStream _stream = null;
+  DomDocument _document = null;
   /**
    * The stream where data is read from
    * to parse and fill {@link GXml.Element.read_buffer}
    */
-  public DataInputStream stream { get; }
+  public DataInputStream stream { get { return _stream; } }
   /**
    * Use it to cancel the parse and fill process
    */
@@ -61,7 +63,7 @@ public class GXml.StreamReader : GLib.Object {
   /**
    * Current {@link DomDocument} used to read to.
    */
-  public DomDocument document { get; }
+  public DomDocument document { get { return _document; } }
   /**
    * Create a new {@link StreamReader} object.
    */


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