qt6-bb10/tests/auto/corelib/tools/qcollator
Marc Mutz 3e803b5180 QCollator: enable move semantics
This necessitates adding d==0 checks in QCollator. By documenting that
moved-from instances can only be assigned to or destroyed, we can
limit the functions in which to check for d==0 to the assignment
operator and the destructor.

Doing otherwise would destroy all advantages of move semantics by
introducing a heap allocation to re-populate other.d.

Add a test for this (QCollator didn't have any before).

Change-Id: Ic6ff202072822bebfd5e48259c3d0fa345a63118
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-11-17 09:47:07 +01:00
..
qcollator.pro QCollator: enable move semantics 2013-11-17 09:47:07 +01:00
tst_qcollator.cpp QCollator: enable move semantics 2013-11-17 09:47:07 +01:00