From 349f16b03cb75c5284022f957c122446ebfc0b79 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 24 Jul 2012 09:25:45 +0200 Subject: [PATCH] Replace old typedefs with their built-in equivalents. Change-Id: I3ecb75ace431b92a13de67aa6426cf570398587f Reviewed-by: Sean Harmer --- tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp b/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp index 5e0fce3f81..ae4d155804 100644 --- a/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp +++ b/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp @@ -1398,8 +1398,7 @@ void tst_QVariant::writeToReadFromDataStream_data() QTest::addColumn("writeVariant"); QTest::addColumn("isNull"); { - typedef QList variantsList; - variantsList valuelist; + QVariantList valuelist; valuelist << QVariant( 1 ) << QVariant( QString("Two") ) << QVariant( 3.45 ); QVariant var(valuelist); QTest::newRow( "list_valid" ) << var << false; @@ -1445,8 +1444,7 @@ void tst_QVariant::writeToReadFromDataStream_data() QTest::newRow( "image_invalid" ) << QVariant::fromValue( QImage() ) << true; QTest::newRow( "keysequence_valid" ) << QVariant::fromValue( QKeySequence( Qt::CTRL + Qt::Key_A ) ) << false; QTest::newRow( "int_valid" ) << QVariant( -123 ) << false; - typedef QMap variantsMap; - variantsMap vMap; + QVariantMap vMap; vMap.insert( "int", QVariant( 1 ) ); vMap.insert( "string", QVariant( QString("Two") ) ); vMap.insert( "double", QVariant( 3.45 ) );