Skip to content

Commit

Permalink
Rearrange QVariantList variable
Browse files Browse the repository at this point in the history
  • Loading branch information
steveire committed Jul 20, 2019
1 parent 73bd221 commit d3ec433
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions templates/tests/testloadertags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,16 +369,14 @@ void TestLoaderTags::testExtendsTag_data()
<< dict << QStringLiteral("1234") << NoError;

dict.clear();
QVariantList list;

auto t1 = m_engine->newTemplate(QStringLiteral("Wrong"),
QStringLiteral("context_template_1"));
auto t2 = m_engine->newTemplate(
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);

Expand Down

0 comments on commit d3ec433

Please sign in to comment.