qt5base-lts/tests/auto/corelib/tools
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
..
qalgorithms Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qbitarray Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qbytearray Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qbytearraymatcher Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qcache Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qchar Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qcontiguouscache Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qcryptographichash Changed qcryptographichash unittest to work from installation directory 2012-02-17 05:24:37 +01:00
qdate Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qdatetime Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qeasingcurve QEasingCurve: implement move constructor 2012-02-21 15:28:40 +01:00
qelapsedtimer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qexplicitlyshareddatapointer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qfreelist Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qhash Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qline Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qlist Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qlocale Make QLocale autotest pass for shadow builds. 2012-02-20 08:06:04 +01:00
qmap Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmargins Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qpoint Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qqueue Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qrect Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qregexp Remove many deprecated methods 2012-01-31 16:17:55 +01:00
qringbuffer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qscopedpointer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qscopedvaluerollback Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qset Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsharedpointer Remove HP PA-RISC atomic implementation. 2012-02-13 12:02:11 +01:00
qsize Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsizef Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstring Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qstringbuilder Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstringlist Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qstringmatcher Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qstringref Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qtextboundaryfinder Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qtime QDateTime: Add validity checks 2012-01-31 04:18:37 +01:00
qtimeline Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qvarlengtharray Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qvector Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
tools.pro Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00