diff options
Diffstat (limited to 'glib/glibmm/object.cc')
-rw-r--r-- | glib/glibmm/object.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/glib/glibmm/object.cc b/glib/glibmm/object.cc index 0373c5d6..2f20189b 100644 --- a/glib/glibmm/object.cc +++ b/glib/glibmm/object.cc @@ -1,6 +1,3 @@ -// -*- c++ -*- -/* $Id$ */ - /* Copyright 1998-2002 The gtkmm Development Team * * This library is free software; you can redistribute it and/or @@ -286,8 +283,13 @@ Object::Object(GObject* castitem) } Object::Object(Object&& src) noexcept -: ObjectBase(std::move(src)) //not actually called because it's a virtual base +: sigc::trackable(std::move(src)), //not actually called because it's a virtual base + ObjectBase(std::move(src)) //not actually called because it's a virtual base { + // Perhaps trackable's move constructor has not been called. Do its job here. + // (No harm is done if notify_callbacks() is called twice. The second call + // won't do anything.) + src.notify_callbacks(); ObjectBase::initialize_move(src.gobject_, &src); } |