summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjell.ahlstedt@bredband.net>2016-06-02 10:14:24 +0200
committerKjell Ahlstedt <kjell.ahlstedt@bredband.net>2016-06-02 10:14:24 +0200
commitd14862f6586bcbcb93d95e2f00b10c8e950d5183 (patch)
tree3de9a578c04c284cee33e48d3ca6ad3db83f78f6
parent61e68709a70e713c20a1e257a70a794f34ff9170 (diff)
downloadglibmm-d14862f6586bcbcb93d95e2f00b10c8e950d5183.tar.gz
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
-rw-r--r--gio/src/inputstream.hg4
-rw-r--r--gio/src/outputstream.hg6
2 files changed, 5 insertions, 5 deletions
diff --git a/gio/src/inputstream.hg b/gio/src/inputstream.hg
index 0283a48e..b98da279 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 428da3de..d1e3f413 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")