qt5base-lts/tests/auto/corelib/tools
Kari Oikarinen 89f443dfbc QScopeGuard: Fix build failures with qScopeGuard()
Partially reverts 4f077b7e5f.

Can't overload with forwarding references and lvalue references. Use a single
forwarding reference overload, but take care of not trying to create a
QScopeGuard of reference type and forward instead of moving.

Add tests to ensure calling with both lvalues and rvalues is possible.

Change-Id: Ia034afe0a8feb08246c2c7c154a85cae37421c98
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2020-02-01 11:07:08 +02:00
..
collections Merge remote-tracking branch 'origin/5.13' into 5.14 2019-09-30 14:43:02 +02:00
containerapisymmetry Don't wrap feature detection macros with QT_HAS_FOO() variants 2019-12-10 00:48:07 +01:00
qalgorithms Remove usages of deprecated APIs of corelib 2019-07-05 11:25:46 +02:00
qarraydata Q_ARRAY_LITERAL: protect the check for literal types 2019-07-06 19:07:04 +00:00
qarraydata_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qbitarray QBitArray: fix fromBits() and actually test it 2019-08-08 20:27:04 -07:00
qcache Updated license headers 2016-01-21 18:55:18 +00:00
qcommandlineparser Remove usages of deprecated APIs of corelib 2019-07-05 11:25:46 +02:00
qcontiguouscache Port from QAtomic::load() to loadRelaxed() 2019-06-20 20:48:59 +02:00
qcryptographichash QCryptographicHash: Add a static method to retrieve hash length 2018-04-10 12:17:43 +00:00
qeasingcurve Fix QEasingCurve possible imprecision at endpoints 2019-10-11 12:29:27 +02:00
qexplicitlyshareddatapointer Add nullptr comparison to Q{Explicitly,}SharedDataPointer 2018-03-18 17:28:26 +00:00
qfreelist Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qhash Add QHash::insert(const QHash &other) 2019-12-05 11:50:32 +01:00
qhash_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qhashfunctions qhashfunctions.h: add specializations of std::hash for some Qt types 2019-05-29 11:22:20 +02:00
qline Remove the remaining usages of deprecated APIs of qtbase 2019-08-01 06:48:27 +02:00
qlinkedlist QVector/QList/QLinkedList/QVarLengthArray/QSet: add missing deduction guides 2019-08-07 23:09:03 +03:00
qlist QVector/QList/QLinkedList/QVarLengthArray/QSet: add missing deduction guides 2019-08-07 23:09:03 +03:00
qlist_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qmacautoreleasepool Add missing dependencies for tst_qmacautoreleasepool 2018-08-29 02:47:45 +00:00
qmakearray corelib/tools: add qMakeArray() API 2018-07-25 06:57:44 +00:00
qmap Add QMap::insert(const QMap &map) 2019-12-12 15:25:30 +01:00
qmap_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qmargins Updated license headers 2016-01-21 18:55:18 +00:00
qmessageauthenticationcode Updated license headers 2016-01-21 18:55:18 +00:00
qoffsetstringarray corelib/tools: Fix auto detection of QOffsetStringArray::m_offset type 2018-08-28 14:42:46 +00:00
qpair core: Add deduction guides for QPair 2019-03-25 19:48:29 +00:00
qpoint QPoint/F: add transposed() 2019-08-07 23:09:06 +03:00
qpointf QPoint/F: add transposed() 2019-08-07 23:09:06 +03:00
qqueue Updated license headers 2016-01-21 18:55:18 +00:00
qrect Improve rounding of QRect::toRect 2017-06-26 21:35:38 +00:00
qringbuffer QRingBuffer: avoid reallocations of the data 2017-12-30 10:15:10 +00:00
qscopedpointer Port from QAtomic::load() to loadRelaxed() 2019-06-20 20:48:59 +02:00
qscopedvaluerollback Use move more consistently in QScopedValueRollback 2019-03-27 07:56:15 +00:00
qscopeguard QScopeGuard: Fix build failures with qScopeGuard() 2020-02-01 11:07:08 +02:00
qset QVector/QList/QLinkedList/QVarLengthArray/QSet: add missing deduction guides 2019-08-07 23:09:03 +03:00
qsharedpointer Merge remote-tracking branch 'origin/5.13' into 5.14 2019-10-24 10:23:44 +02:00
qsize Long live QSize(F)::grownBy/shrunkBy() 2019-08-22 11:38:54 +02:00
qsizef Long live QSize(F)::grownBy/shrunkBy() 2019-08-22 11:38:54 +02:00
qstl Updated license headers 2016-01-21 18:55:18 +00:00
qtimeline Flatten version-specific blacklisting on macOS to all macOS versions 2020-01-22 17:58:31 +01:00
qvarlengtharray QVector/QList/QLinkedList/QVarLengthArray/QSet: add missing deduction guides 2019-08-07 23:09:03 +03:00
qvector QVector/QList/QLinkedList/QVarLengthArray/QSet: add missing deduction guides 2019-08-07 23:09:03 +03:00
qvector_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qversionnumber Remove handling of missing Q_COMPILER_INITIALIZER_LISTS 2019-05-02 23:10:55 +00:00
tools.pro Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00