summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2015-09-01 16:54:03 +0200
committerMurray Cumming <murrayc@murrayc.com>2015-09-01 16:54:03 +0200
commit935d0561bb0fc11ac1e52f27d3d118ca30a6dc96 (patch)
tree0ebd222ddbcaa29c7b706c76aa5b0be7e93c412c
parent489860d061b518ead43c096de5c076d168491ae5 (diff)
downloadglibmm-935d0561bb0fc11ac1e52f27d3d118ca30a6dc96.tar.gz
IOChannel: move operations: Call the base sigc::trackable.
-rw-r--r--glib/src/iochannel.ccg5
1 files changed, 4 insertions, 1 deletions
diff --git a/glib/src/iochannel.ccg b/glib/src/iochannel.ccg
index fd8df453..13319f1d 100644
--- a/glib/src/iochannel.ccg
+++ b/glib/src/iochannel.ccg
@@ -128,13 +128,16 @@ IOChannel::IOChannel()
}
IOChannel::IOChannel(IOChannel&& other) noexcept
-: gobject_(std::move(other.gobject_))
+: sigc::trackable(std::move(other)),
+ gobject_(std::move(other.gobject_))
{
other.gobject_ = nullptr;
}
IOChannel& IOChannel::operator=(IOChannel&& other) noexcept
{
+ sigc::trackable::operator=(std::move(other));
+
release_gobject();
gobject_ = std::move(other.gobject_);