Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tst_QScopeGuard: Remove unused lambda capture | Kari Oikarinen | 2019-11-19 | 1 | -1/+1 |
| | | | | | | | | | | qt5/qtbase/tests/auto/corelib/tools/qscopeguard/tst_qscopeguard.cpp:100:38: warning: lambda capture 'caught' is not used [-Wunused-lambda-capture] auto cleanup = qScopeGuard([&caught] { s_globalState++; }); ~^~~~~~ Change-Id: I0d9b85896594f3ea35c8003846d4ac7ab5e33d16 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> | ||||
* | Introduce QScopeGuard | Sérgio Martins | 2018-07-21 | 2 | -0/+89 |
A RAII style class which calls a function at end of scope. Example usage: auto cleanup = qScopeGuard([] { <my cleanup code> ; }); [ChangeLog][QtCore] Introduced QScopeGuard. Task-number: QTBUG-62894 Change-Id: Ife67f5c76255a1fafbae03367263da0bac9a0070 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> |