From: Marc Mutz Date: Wed, 25 Jul 2012 13:27:59 +0000 (+0200) Subject: tst_qmetatype: fix two more unused typedefs (GCC 4.8 warning) X-Git-Tag: v5.0.0-beta1~600 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff453fa757c154e9234541c5cda47014a0803538;p=profile%2Fivi%2Fqtbase.git tst_qmetatype: fix two more unused typedefs (GCC 4.8 warning) Also check the return value of DefaultValueFactory::create(), the same way it's done in testCreateHelper(). Change-Id: I3e6d7fca4ea74dbe65009f2eb2c64a1b3a370d68 Reviewed-by: Stephen Kelly --- diff --git a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp index b5169fe..8247385 100644 --- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp +++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp @@ -628,7 +628,6 @@ static void testCreateHelper() template<> void testCreateHelper() { - typedef MetaEnumToType::Type Type; void *actual = QMetaType::create(QMetaType::Void); if (DefaultValueTraits::IsInitialized) { QVERIFY(DefaultValueFactory::create()); @@ -968,13 +967,12 @@ static void testConstructHelper() template<> void testConstructHelper() { - typedef MetaEnumToType::Type Type; /*int size = */ QMetaType::sizeOf(QMetaType::Void); void *storage = 0; void *actual = QMetaType::construct(QMetaType::Void, storage, /*copy=*/0); QCOMPARE(actual, storage); if (DefaultValueTraits::IsInitialized) { - /*Type *expected = */ DefaultValueFactory::create(); + QVERIFY(DefaultValueFactory::create()); } QMetaType::destruct(QMetaType::Void, actual); qFreeAligned(storage);