qt5base-lts/tests/auto/corelib
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
..
animation Merge remote-tracking branch 'origin/stable' into dev 2013-01-22 18:40:13 +01:00
codecs Ensure that the user codecs are listed in QTextCodec::availableCodecs 2013-07-21 07:30:48 +02:00
global Make QFlags enum flags (C++11 strict enums) friendly 2013-05-09 12:17:59 +02:00
io QUrl: add matches(url, options) method. 2013-07-26 04:47:18 +02:00
itemmodels Fix QAbstractItemModel::moveColumn() 2013-04-23 13:35:31 +02:00
json Merge branch 'stable' into dev 2013-07-11 16:42:01 +02:00
kernel Merge branch 'stable' into dev 2013-07-11 16:42:01 +02:00
mimetypes QMimeDatabase: pass MatchMode down, to fix MatchContent. 2013-03-01 13:05:11 +01:00
plugin Make the Mach-O size checking a little more robust 2013-07-20 02:09:41 +02:00
statemachine Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
thread Merge remote-tracking branch 'origin/stable' into dev 2013-05-23 21:27:07 +02:00
tools Implement move-ctor and move-assignment-op for QScopedPointer 2013-07-28 23:09:10 +02:00
xml Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00