summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlmetaproperty.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-05-22 03:03:12 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-05-22 03:03:12 (GMT)
commitd62ebb5cc452c894afde0da4ba4dd3bc2456ceb9 (patch)
tree5109bfc2b89f48c5cb2c21d65653ad4d79cbfa95 /src/declarative/qml/qmlmetaproperty.cpp
parent47318932fc44428fc698fc5d4366e9b59f5c7fb9 (diff)
downloadQt-d62ebb5cc452c894afde0da4ba4dd3bc2456ceb9.zip
Qt-d62ebb5cc452c894afde0da4ba4dd3bc2456ceb9.tar.gz
Qt-d62ebb5cc452c894afde0da4ba4dd3bc2456ceb9.tar.bz2
Don't rely on qreal being a double.
Diffstat (limited to 'src/declarative/qml/qmlmetaproperty.cpp')
-rw-r--r--src/declarative/qml/qmlmetaproperty.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/declarative/qml/qmlmetaproperty.cpp b/src/declarative/qml/qmlmetaproperty.cpp
index e3e9ff5..3aa4f1d 100644
--- a/src/declarative/qml/qmlmetaproperty.cpp
+++ b/src/declarative/qml/qmlmetaproperty.cpp
@@ -730,19 +730,19 @@ void QmlMetaPropertyPrivate::writeValueProperty(const QVariant &value)
switch(t) {
case QVariant::Double:
{
- qreal r;
+ double d;
bool found = true;
if (vt == QVariant::Int) {
- r = value.toInt();
+ d = value.toInt();
} else if (vt == QVariant::UInt) {
- r = value.toUInt();
+ d = value.toUInt();
} else {
found = false;
}
if (found) {
void *a[1];
- a[0] = &r;
+ a[0] = &d;
QMetaObject::metacall(object,
QMetaObject::WriteProperty,
coreIdx, a);
@@ -906,19 +906,19 @@ void QmlMetaProperty::write(const QVariant &value) const
switch(t) {
case QVariant::Double:
{
- qreal r;
+ double dd;
bool found = true;
if (vt == QVariant::Int) {
- r = value.toInt();
+ dd = value.toInt();
} else if (vt == QVariant::UInt) {
- r = value.toUInt();
+ dd = value.toUInt();
} else {
found = false;
}
if (found) {
void *a[1];
- a[0] = &r;
+ a[0] = &dd;
QMetaObject::metacall(object(),
QMetaObject::WriteProperty,
d->coreIdx, a);