qt5base-lts/tests/auto/corelib
Marc Mutz 3a8da4a484 QEasingCurve: implement move constructor
The move constructor sets other.d_ptr to zero. This is safe, because
after being moved from, the object is left in a state in which it
can be safely destroyed (delete nullptr is a no-op).

It cannot meaningfully be used anymore (most members will crash with
a nullptr dereference), but in most cases, the moved-from object
cannot be accessed anyway (not a named object), and if a named object
is moved from, it must have been through explicit std::move(), as in
the test case.

The STL makes better guarantees (moved-from containers are .empty()),
but I don't think it's worth introducing a null state into
QEasingCurve just for supporting a use-case that should be
considered a bug anyway.

Change-Id: I4115b7386cdea6960507da6843a0d0196d8e4139
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-02-21 15:28:40 +01:00
..
animation Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
codecs Eliminate duplicate data row names in utf8 autotest. 2012-02-14 02:48:35 +01:00
global Fix qlogging test. 2012-02-21 08:39:44 +01:00
io Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00
itemmodels Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
json Added error reporting to QJsonParser 2012-02-18 18:08:06 +01:00
kernel Silence warnings/debug output from qobject tests 2012-02-20 19:51:41 +01:00
mimetypes Modify helper functions to remove embedded QSKIP call and return status. 2012-02-20 08:06:19 +01:00
plugin Fixed qlibrary unittest to work on mac 2012-02-10 03:02:07 +01:00
statemachine Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
thread Speed up tst_QWaitCondition 2012-02-20 00:21:00 +01:00
tools QEasingCurve: implement move constructor 2012-02-21 15:28:40 +01:00
xml Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00