fix build with namespaced qt
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Tue, 10 Jul 2012 17:34:48 +0000 (19:34 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Jul 2012 12:52:17 +0000 (14:52 +0200)
Change-Id: Ie7d8ce60448aea98141baa66a57796447a31040e
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp

index ca8dba4..4e9f39f 100644 (file)
@@ -90,7 +90,9 @@ struct BigClass
     double n,i,e,r,o,b;
 };
 Q_STATIC_ASSERT(sizeof(BigClass) > sizeof(QVariant::Private::Data));
+QT_BEGIN_NAMESPACE
 Q_DECLARE_TYPEINFO(BigClass, Q_MOVABLE_TYPE);
+QT_END_NAMESPACE
 Q_DECLARE_METATYPE(BigClass);
 
 struct SmallClass
@@ -98,7 +100,9 @@ struct SmallClass
     char s;
 };
 Q_STATIC_ASSERT(sizeof(SmallClass) <= sizeof(QVariant::Private::Data));
+QT_BEGIN_NAMESPACE
 Q_DECLARE_TYPEINFO(SmallClass, Q_MOVABLE_TYPE);
+QT_END_NAMESPACE
 Q_DECLARE_METATYPE(SmallClass);
 
 void tst_qvariant::testBound()