From d14862f6586bcbcb93d95e2f00b10c8e950d5183 Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Thu, 2 Jun 2016 10:14:24 +0200 Subject: 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 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") -- cgit v1.2.1