From 80cd5d2017342bc7674367fa418349f3f1eef798 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 24 Jul 2012 12:01:13 +0200 Subject: Use a large core type for the QVariant::setValue test. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The type needs to be large enough that QVariantIntegrator::CanUseInternalSpace is true. Change-Id: I311c44bedfebd946e41639975df206c27b6d55ca Reviewed-by: Olivier Goffart Reviewed-by: Jędrzej Nowacki --- tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/auto') diff --git a/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp b/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp index 3a0b93640f..d8c6e25dcc 100644 --- a/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp +++ b/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp @@ -64,6 +64,8 @@ #include #include #include +#include + #include @@ -2990,8 +2992,8 @@ void tst_QVariant::toIntFromDouble() const void tst_QVariant::setValue() { - QTransform t; //we just take a value so that we're sure that it will be shared - QVariant v1 = t; + QJsonDocument t; //we just take a value so that we're sure that it will be shared + QVariant v1 = QVariant::fromValue(t); QVERIFY( v1.isDetached() ); QVariant v2 = v1; QVERIFY( !v1.isDetached() ); -- cgit v1.2.3