summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qvector/tst_qvector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/tools/qvector/tst_qvector.cpp')
-rw-r--r--tests/auto/corelib/tools/qvector/tst_qvector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/tools/qvector/tst_qvector.cpp b/tests/auto/corelib/tools/qvector/tst_qvector.cpp
index 09d3051ca5..e83189ec6f 100644
--- a/tests/auto/corelib/tools/qvector/tst_qvector.cpp
+++ b/tests/auto/corelib/tools/qvector/tst_qvector.cpp
@@ -293,6 +293,8 @@ private:
template<typename T> void detach() const;
};
+Q_DECLARE_METATYPE(QVector<int>);
+
template<typename T> struct SimpleValue
{
static T at(int index)
@@ -2026,8 +2028,6 @@ void tst_QVector::const_shared_null()
QVERIFY(!v2.isDetached());
}
-Q_DECLARE_METATYPE(QVector<int>);
-
template<typename T>
void tst_QVector::setSharable_data() const
{