summaryrefslogtreecommitdiff
path: root/tests/glibmm_objectbase_move
Commit message (Collapse)AuthorAgeFilesLines
* tests: Split object_move and objectbase_move tests.Murray Cumming2017-04-091-59/+2
| | | | This allows further reuse of the DerivedObject and DerivedObjectBase test classes.
* Run clang-format on tests.Murray Cumming2016-02-261-31/+36
|
* ObjectBase, Object, Interface: Fix move constructors and move assignmentsKjell Ahlstedt2015-10-311-9/+13
| | | | | | | | | | | | | | | | * glib/glibmm/interface.cc: Don't call ObjectBase's move assignment operator from Interface's move assignment operator. * glib/glibmm/object.cc: Perform of job of sigc::trackable's move constructor in Object's move constructor. * glib/glibmm/objectbase.cc: Move constructor: Set gobject_ = nullptr. Fix the assignment of cpp_destruction_in_progress_. Move assignment: Add self-assignment guard. Avoid the risk of accidentally deleting *this. Let a call to initialize_move() do most of the job. * tests/glibmm_interface_move/main.cc: * tests/glibmm_object_move/main.cc: * tests/glibmm_objectbase_move/main.cc: Really test move assignment. Test that the wrapped C object has been moved, and not copied. Bug #756962.
* tests: Split glibmm_object_move into 2 files.Murray Cumming2015-08-221-0/+96
To test ObjectBase separately.