fix build with namespaced qt

Change-Id: Ie7d8ce60448aea98141baa66a57796447a31040e
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
Oswald Buddenhagen 2012-07-10 19:34:48 +02:00 committed by Qt by Nokia
parent a63c7a9382
commit 9de46b2b93

View File

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