From d3ec4337b87eb3a9176def1854150a88ef133f54 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 20 Jul 2019 18:26:47 +0100 Subject: [PATCH] Rearrange QVariantList variable --- templates/tests/testloadertags.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/tests/testloadertags.cpp b/templates/tests/testloadertags.cpp index 9a04b629..dceb00dc 100644 --- a/templates/tests/testloadertags.cpp +++ b/templates/tests/testloadertags.cpp @@ -369,7 +369,6 @@ void TestLoaderTags::testExtendsTag_data() << dict << QStringLiteral("1234") << NoError; dict.clear(); - QVariantList list; auto t1 = m_engine->newTemplate(QStringLiteral("Wrong"), QStringLiteral("context_template_1")); @@ -377,8 +376,7 @@ void TestLoaderTags::testExtendsTag_data() QStringLiteral("1{% block first %}_{% endblock %}3{% block second %}_{% " "endblock %}"), QStringLiteral("context_template_2")); - list << QVariant::fromValue(t1); - list << QVariant::fromValue(t2); + QVariantList list{QVariant::fromValue(t1), QVariant::fromValue(t2)}; dict.insert(QStringLiteral("context_template"), list);