diff options
author | axis <qt-info@nokia.com> | 2009-08-21 11:09:17 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-08-21 11:09:17 (GMT) |
commit | 681af3119f2e4681d08e3818601ed4458b8d62a9 (patch) | |
tree | ea9104157dcc1534a7a280a14f5aa370478f42d6 /src/corelib/kernel/qvariant.cpp | |
parent | d936f7fe97bc6e55934d83b2c894dea556a4ea6f (diff) | |
parent | 0ef0311dad387642bd6aa43e2cef9d25e2b5c5b3 (diff) | |
download | Qt-681af3119f2e4681d08e3818601ed4458b8d62a9.zip Qt-681af3119f2e4681d08e3818601ed4458b8d62a9.tar.gz Qt-681af3119f2e4681d08e3818601ed4458b8d62a9.tar.bz2 |
Merge branch 'reviewPatches'
Diffstat (limited to 'src/corelib/kernel/qvariant.cpp')
-rw-r--r-- | src/corelib/kernel/qvariant.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp index ebd2e30..65df600 100644 --- a/src/corelib/kernel/qvariant.cpp +++ b/src/corelib/kernel/qvariant.cpp @@ -156,16 +156,7 @@ static void construct(QVariant::Private *x, const void *copy) x->data.b = copy ? *static_cast<const bool *>(copy) : false; break; case QVariant::Double: -#if defined(Q_CC_RVCT) - // Using trinary operator with 64bit constants crashes when ran on Symbian device - if (copy){ - x->data.d = *static_cast<const double*>(copy); - } else { - x->data.d = 0.0; - } -#else x->data.d = copy ? *static_cast<const double*>(copy) : 0.0; -#endif break; case QMetaType::Float: x->data.f = copy ? *static_cast<const float*>(copy) : 0.0f; @@ -174,28 +165,10 @@ static void construct(QVariant::Private *x, const void *copy) x->data.o = copy ? *static_cast<QObject *const*>(copy) : 0; break; case QVariant::LongLong: -#if defined(Q_CC_RVCT) - // Using trinary operator with 64bit constants crashes when ran on Symbian device - if (copy){ - x->data.ll = *static_cast<const qlonglong *>(copy); - } else { - x->data.ll = Q_INT64_C(0); - } -#else x->data.ll = copy ? *static_cast<const qlonglong *>(copy) : Q_INT64_C(0); -#endif break; case QVariant::ULongLong: -#if defined(Q_CC_RVCT) - // Using trinary operator with 64bit constants crashes when ran on Symbian device - if (copy){ - x->data.ull = *static_cast<const qulonglong *>(copy); - } else { - x->data.ull = Q_UINT64_C(0); - } -#else x->data.ull = copy ? *static_cast<const qulonglong *>(copy) : Q_UINT64_C(0); -#endif break; case QVariant::Invalid: case QVariant::UserType: |