fix build with namespaced qt
Change-Id: Ie7d8ce60448aea98141baa66a57796447a31040e Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
parent
a63c7a9382
commit
9de46b2b93
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user