summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-07-10 19:34:48 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-11 14:52:17 +0200
commit9de46b2b9387e813e3194765652699aa6ad4d158 (patch)
treeb8d2c4ef564cb8b682d9138599be5a4ce44203a8 /tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp
parenta63c7a93828dbda11ae6ec2ef9ed3701141ba36e (diff)
fix build with namespaced qt
Change-Id: Ie7d8ce60448aea98141baa66a57796447a31040e Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp')
-rw-r--r--tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp b/tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp
index ca8dba4b88..4e9f39f8dc 100644
--- a/tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp
+++ b/tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp
@@ -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()