qt5base-lts/tests/auto
Giuseppe D'Angelo 5b9006bbdb Implement move-ctor and move-assignment-op for QScopedPointer
It makes sense for a QScopedPointer to be movable, for instance
for allowing instances to be returned from a function.
Ownwership of the managed pointer is still tied to one (and one only)
QScopedPointer instance.

Moreover, a move assignment operator makes sense as well, as it
implementing the equivalent of

  this->reset(other.take());

only when other is a rvalue and not a lvalue (so either it's a temporary
or it's getting explicitly moved in with std::move).

This makes QScopedPointer API's a bit closer to std::unique_ptr's one.

Task-number: QTBUG-29754
Change-Id: If1ac0c688327a67af4ad5b7ad45b439b022ed1c6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-07-28 23:09:10 +02:00
..
android Make sure libgnustl_shared.so is deployed along with Qt libs 2013-07-04 10:04:27 +02:00
bic/data test: Add 5.1.0 bic data for linux-gcc-ia32 2013-07-08 21:47:36 +02:00
cmake Don't check for the existence of private include directories. 2013-07-22 15:41:45 +02:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent QtConcurrent tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:25 +01:00
corelib Implement move-ctor and move-assignment-op for QScopedPointer 2013-07-28 23:09:10 +02:00
dbus Merge remote-tracking branch 'origin/stable' into dev 2013-07-23 11:18:11 +02:00
gui Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev 2013-07-24 15:09:38 +02:00
guiapplauncher
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Merge remote-tracking branch 'origin/stable' into dev 2013-07-23 11:18:11 +02:00
opengl Add object names to QGLWidget-reparenting test. 2013-06-14 15:13:26 +02:00
other Merge branch 'release' into stable 2013-07-03 18:33:26 +02:00
printsupport QPrintPreviewDialog: Prevent changing of page in resize handling. 2013-05-23 09:31:27 +02:00
shared Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
sql Remove Nokia-domains in commented-out test code. 2013-07-12 12:41:30 +02:00
testlib TestLib: align the colons so the "actual" and "expected" align too 2013-07-21 03:01:06 +02:00
tools make split_value_list() even less sane again 2013-07-03 21:38:37 +02:00
widgets Re-enable tests tst_qgraphicsproxywidget, tst_qgraphicswidget. 2013-07-24 22:16:58 +02:00
xml tst_qdom: Fix warning about character conversion, 2013-06-08 10:29:34 +02:00
auto.pro Make the CMake tests run sequentially, not in parallel. 2013-07-08 14:48:03 +02:00
network-settings.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtest-config.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test.pl Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00