summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-01-13 16:45:28 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-01-14 11:37:10 +0100
commit052f3db7e68eac7eabaae79991431884de8e835a (patch)
tree742f1a677e4cb3092c79894b14b443c0e5eb3903 /tests
parent0f568d0a671e9f0667a1b47ffa6fbb9f7a10d9f5 (diff)
qshader autotest: Avoid variable shadowing
Nicer this way. Change-Id: Ia132b8e394f1080623abe4b1452a41c5ca31272c Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/gui/rhi/qshader/tst_qshader.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/auto/gui/rhi/qshader/tst_qshader.cpp b/tests/auto/gui/rhi/qshader/tst_qshader.cpp
index b90ac8dc53..ab7115b74a 100644
--- a/tests/auto/gui/rhi/qshader/tst_qshader.cpp
+++ b/tests/auto/gui/rhi/qshader/tst_qshader.cpp
@@ -389,10 +389,12 @@ void tst_QShader::serializeShaderDesc()
}
QVERIFY(!data.isEmpty());
- QShaderDescription desc2;
- QVERIFY(!desc2.isValid());
- QVERIFY(!(desc == desc2));
- QVERIFY(desc != desc2);
+ {
+ QShaderDescription desc2;
+ QVERIFY(!desc2.isValid());
+ QVERIFY(!(desc == desc2));
+ QVERIFY(desc != desc2);
+ }
{
QBuffer buf(&data);