[glibmm] Object: Move constructor: Use initialize_move().



commit a5991b76b29979dcc68d16ef711270bb4fba12e8
Author: Murray Cumming <murrayc murrayc com>
Date:   Sat Aug 22 17:34:55 2015 +0200

    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.

 glib/glibmm/object.cc |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/glib/glibmm/object.cc b/glib/glibmm/object.cc
index ce3b3e9..29ef4ee 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
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]