summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {