summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/util/qshadernodesloader
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-26 19:39:37 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-29 18:34:16 +0000
commit47cb6ad698232c59641d0d1ffccc4949fcfd2a2f (patch)
tree89cff30ba9582718dc6a05b04644d31089e5caad /tests/auto/gui/util/qshadernodesloader
parent3d03f4e989e0ae53569a1a2e390d71c41d91f329 (diff)
Don't capture this explicitly in tests
Some compilers implicitly captures, and will warn about the unused capture. Change-Id: Ib5e1cc3956c7eb0dc87cee834cce8a2b3dd0d30b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/gui/util/qshadernodesloader')
-rw-r--r--tests/auto/gui/util/qshadernodesloader/tst_qshadernodesloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/gui/util/qshadernodesloader/tst_qshadernodesloader.cpp b/tests/auto/gui/util/qshadernodesloader/tst_qshadernodesloader.cpp
index f3e1013a4b..af9e7b8c8e 100644
--- a/tests/auto/gui/util/qshadernodesloader/tst_qshadernodesloader.cpp
+++ b/tests/auto/gui/util/qshadernodesloader/tst_qshadernodesloader.cpp
@@ -225,7 +225,7 @@ void tst_QShaderNodesLoader::shouldLoadFromJsonStream_data()
" }"
"}";
- const auto smallProtos = [this]{
+ const auto smallProtos = [&]{
const auto openGLES2 = createFormat(QShaderFormat::OpenGLES, 2, 0);
const auto openGLES2Extended = createFormat(QShaderFormat::OpenGLES, 2, 0, {"ext1", "ext2"}, "kdab");
const auto openGL2 = createFormat(QShaderFormat::OpenGLCompatibilityProfile, 2, 1);