summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-10-15 17:06:34 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-10-16 13:53:03 +0200
commitfaf7fd577f30a6be4cc2b77bb6ab8b5baf3e4fa3 (patch)
tree5b9a7b7263fbe0e05b40ccab4c6feaa6470c7bec /tests
parentaa442e9450c8a288b8aaa2dda79ccb69d8774429 (diff)
Fix warning in test: unused capture in lambda
Change-Id: Ifa9bab843feb670f8400c26fd78f96db55bfd79e Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: David Skoland <david.skoland@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp
index c9b5538ad5..4c520d0eaa 100644
--- a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp
+++ b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp
@@ -2438,7 +2438,7 @@ void tst_QArrayData::exceptionSafetyPrimitives_constructor()
WatcherScope scope; Q_UNUSED(scope);
try {
ThrowingType::throwOnce = throwOnNthConstruction;
- doConstruction(data, data.end(), [&source, &value] (Constructor &ctor) {
+ doConstruction(data, data.end(), [&value] (Constructor &ctor) {
return ctor.clone(5, value);
});
} catch (const std::runtime_error &e) {