[glibmm] Gio::InputStream, OutputStream: Make some of the new methods const



commit d14862f6586bcbcb93d95e2f00b10c8e950d5183
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Thu Jun 2 10:14:24 2016 +0200

    Gio::InputStream, OutputStream: Make some of the new methods const
    
    * gio/src/inputstream.hg: is_closed() and has_pending() shall be const.
    * gio/src/outputstream.hg: is_closed(), is_closing() and has_pending()
    shall be const. Bug #572471

 gio/src/inputstream.hg  |    4 ++--
 gio/src/outputstream.hg |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gio/src/inputstream.hg b/gio/src/inputstream.hg
index 0283a48..b98da27 100644
--- a/gio/src/inputstream.hg
+++ b/gio/src/inputstream.hg
@@ -383,8 +383,8 @@ public:
                g_input_stream_close_finish,
                errthrow)
 
-  _WRAP_METHOD(bool is_closed(), g_input_stream_is_closed, newin "2,50")
-  _WRAP_METHOD(bool has_pending(), g_input_stream_has_pending, newin "2,50")
+  _WRAP_METHOD(bool is_closed() const, g_input_stream_is_closed, newin "2,50")
+  _WRAP_METHOD(bool has_pending() const, g_input_stream_has_pending, newin "2,50")
 
 protected:
   _WRAP_METHOD(bool set_pending(), g_input_stream_set_pending, errthrow, newin "2,50")
diff --git a/gio/src/outputstream.hg b/gio/src/outputstream.hg
index 428da3d..d1e3f41 100644
--- a/gio/src/outputstream.hg
+++ b/gio/src/outputstream.hg
@@ -495,9 +495,9 @@ public:
                g_output_stream_close_finish,
                errthrow)
 
-  _WRAP_METHOD(bool is_closed(), g_output_stream_is_closed, newin "2,50")
-  _WRAP_METHOD(bool is_closing(), g_output_stream_is_closing, newin "2,50")
-  _WRAP_METHOD(bool has_pending(), g_output_stream_has_pending, newin "2,50")
+  _WRAP_METHOD(bool is_closed() const, g_output_stream_is_closed, newin "2,50")
+  _WRAP_METHOD(bool is_closing() const, g_output_stream_is_closing, newin "2,50")
+  _WRAP_METHOD(bool has_pending() const, g_output_stream_has_pending, newin "2,50")
 
 protected:
   _WRAP_METHOD(bool set_pending(), g_output_stream_set_pending, errthrow, newin "2,50")


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