aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4runtime.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-25 13:52:15 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-28 13:33:32 +0200
commit4d40fa24c3ee8def2f27bd237fc8dec25cf3f473 (patch)
treecb4ad758f03cf204cbae1e7d086bfeaf73a64bc3 /src/qml/jsruntime/qv4runtime.cpp
parentabd82c68d564c97a4452a3afa2d63320e7292b30 (diff)
Move Value::toInteger(double) and related to Primitive
Also clean up a few other direct uses of Value Change-Id: Ie27d42c1b31b9e6d16d0a60071cb5e4e1c5b9e8b Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4runtime.cpp')
-rw-r--r--src/qml/jsruntime/qv4runtime.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp
index ec164500cc..d18eeed240 100644
--- a/src/qml/jsruntime/qv4runtime.cpp
+++ b/src/qml/jsruntime/qv4runtime.cpp
@@ -216,7 +216,7 @@ void __qmljs_numberToString(QString *result, double num, int radix)
}
double frac = num - ::floor(num);
- num = Value::toInteger(num);
+ num = Primitive::toInteger(num);
do {
char c = (char)::fmod(num, radix);
@@ -1294,7 +1294,7 @@ int __qmljs_value_to_int32(const ValueRef value)
int __qmljs_double_to_int32(const double &d)
{
- return Value::toInt32(d);
+ return Primitive::toInt32(d);
}
unsigned __qmljs_value_to_uint32(const ValueRef value)
@@ -1304,7 +1304,7 @@ unsigned __qmljs_value_to_uint32(const ValueRef value)
unsigned __qmljs_double_to_uint32(const double &d)
{
- return Value::toUInt32(d);
+ return Primitive::toUInt32(d);
}
ReturnedValue __qmljs_value_from_string(String *string)