qt5base-lts/tests/auto
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
..
bic Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Complete split of QtConcurrent. 2012-02-06 16:48:22 +01:00
corelib QEasingCurve: implement move constructor 2012-02-21 15:28:40 +01:00
dbus Stabilize tst_qdbusabstractinterface and make it XFAIL 2012-02-20 23:34:35 +01:00
gui Improve tst_QPrinterInfo::testForDefaultPrinter(). 2012-02-21 06:10:43 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Changed qnetworksession unittest to work from installation dir 2012-02-21 01:01:52 +01:00
opengl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
other Ensure that Qt public headers compile with strict flags 2012-02-17 16:42:28 +01:00
sql QSqlTableModel::commitAll(): replace row removal hack 2012-02-15 02:36:21 +01:00
testlib Port badxml autotest to QMetaObjectBuilder 2012-02-21 13:57:12 +01:00
tools uic: use QStringLiteral() instead of QString::fromUtf8() where applicable 2012-02-20 15:17:08 +01:00
widgets Make the QApplication autotest work for shadow builds. 2012-02-21 02:27:23 +01:00
xml Eliminate duplicate data row names in dbus, tools and xml autotests. 2012-02-16 02:00:52 +01:00
auto.pro Disable 'check' target generation for network autotests for Windows. 2012-02-17 11:48:08 +01:00
network-settings.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
platformquirks.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00