[glibmm] IOChannel: move operations: Call the base sigc::trackable.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] IOChannel: move operations: Call the base sigc::trackable.
- Date: Tue, 1 Sep 2015 14:54:30 +0000 (UTC)
commit 935d0561bb0fc11ac1e52f27d3d118ca30a6dc96
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Sep 1 16:54:03 2015 +0200
IOChannel: move operations: Call the base sigc::trackable.
glib/src/iochannel.ccg | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/glib/src/iochannel.ccg b/glib/src/iochannel.ccg
index fd8df45..13319f1 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_);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]