From faf7fd577f30a6be4cc2b77bb6ab8b5baf3e4fa3 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Thu, 15 Oct 2020 17:06:34 +0200 Subject: Fix warning in test: unused capture in lambda MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ifa9bab843feb670f8400c26fd78f96db55bfd79e Reviewed-by: Andrei Golubev Reviewed-by: MÃ¥rten Nordheim Reviewed-by: David Skoland --- tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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) { -- cgit v1.2.3