summaryrefslogtreecommitdiff
path: root/glib/glibmm/object.cc
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2015-08-22 17:34:55 +0200
committerMurray Cumming <murrayc@murrayc.com>2015-08-22 17:34:55 +0200
commita5991b76b29979dcc68d16ef711270bb4fba12e8 (patch)
treec436b9da46eb5f68719553ccda4452de7ef6ac34 /glib/glibmm/object.cc
parent41708be88a1ea1513029221868f48b9c8aa23808 (diff)
downloadglibmm-a5991b76b29979dcc68d16ef711270bb4fba12e8.tar.gz
Object: Move constructor: Use initialize_move().
Because the call to the ObjectBase move constructor will not actually happen. See the comment for the previous commit.
Diffstat (limited to 'glib/glibmm/object.cc')
-rw-r--r--glib/glibmm/object.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/glib/glibmm/object.cc b/glib/glibmm/object.cc
index ce3b3e95..29ef4ee8 100644
--- a/glib/glibmm/object.cc
+++ b/glib/glibmm/object.cc
@@ -286,8 +286,10 @@ Object::Object(GObject* castitem)
}
Object::Object(Object&& src) noexcept
-: ObjectBase(std::move(src))
-{}
+: ObjectBase(std::move(src)) //not actually called because it's a virtual base
+{
+ ObjectBase::initialize_move(src.gobject_, &src);
+}
Object& Object::operator=(Object&& src) noexcept
{