diff options
author | mread <qt-info@nokia.com> | 2011-10-05 15:40:26 (GMT) |
---|---|---|
committer | mread <qt-info@nokia.com> | 2011-10-05 15:51:27 (GMT) |
commit | 6e1b00087902866cd4c0e3057690d045356869f0 (patch) | |
tree | 7e3a0f471235923c9b22a6fbd3e0a84c33af0a9d /src/declarative/util/qdeclarativexmllistmodel.cpp | |
parent | 2a6298bcf29104a4258992c7357a031f4ca9cc7f (diff) | |
download | Qt-6e1b00087902866cd4c0e3057690d045356869f0.zip Qt-6e1b00087902866cd4c0e3057690d045356869f0.tar.gz Qt-6e1b00087902866cd4c0e3057690d045356869f0.tar.bz2 |
Converting accidental use of doubles to qreal in declarative
Declarative had a number of places where double operations were used
instead of qreal, due to the use of double literals. These are now
constructed as qreal literals so that qreal operations are used.
This makes no difference where qreal is double. But on Symbian, qreal
is float, and this give a performance boost for floating point intensive
code.
Task-number: QTBUG-4894
Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/util/qdeclarativexmllistmodel.cpp')
-rw-r--r-- | src/declarative/util/qdeclarativexmllistmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativexmllistmodel.cpp b/src/declarative/util/qdeclarativexmllistmodel.cpp index 658dcad..980568e 100644 --- a/src/declarative/util/qdeclarativexmllistmodel.cpp +++ b/src/declarative/util/qdeclarativexmllistmodel.cpp @@ -530,7 +530,7 @@ public: void notifyQueryStarted(bool remoteSource) { Q_Q(QDeclarativeXmlListModel); - progress = remoteSource ? 0.0 : 1.0; + progress = remoteSource ? qreal(0.0) : qreal(1.0); status = QDeclarativeXmlListModel::Loading; errorString.clear(); emit q->progressChanged(progress); |