aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlexpression.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-05-06 15:57:06 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-06 16:10:21 +0200
commit8b5fbb56299851896fbcf136bdcfdcd4487484b5 (patch)
tree16a5a586d2dbe0b8e6d60b0ba76803dcce2560db /src/qml/qml/qqmlexpression.cpp
parent19c6f620dd35916466c36234231d798f79732ab0 (diff)
Get rid of v8::Local
The class was doing exactly the same thing as v8::Handle in our implementation. Removing it cleans up quite a bit of code. Change-Id: I37a3dcdef062fc388751e9ef0a158b5926ba2efb Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlexpression.cpp')
-rw-r--r--src/qml/qml/qqmlexpression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlexpression.cpp b/src/qml/qml/qqmlexpression.cpp
index 5a51cd10da..29f53f3372 100644
--- a/src/qml/qml/qqmlexpression.cpp
+++ b/src/qml/qml/qqmlexpression.cpp
@@ -340,7 +340,7 @@ void QQmlExpression::setExpression(const QString &expression)
}
// Must be called with a valid handle scope
-v8::Local<v8::Value> QQmlExpressionPrivate::v8value(bool *isUndefined)
+v8::Handle<v8::Value> QQmlExpressionPrivate::v8value(bool *isUndefined)
{
if (!expressionFunctionValid) {
bool ok = true;
@@ -376,7 +376,7 @@ QVariant QQmlExpressionPrivate::value(bool *isUndefined)
ep->referenceScarceResources(); // "hold" scarce resources in memory during evaluation.
{
- v8::Local<v8::Value> result = v8value(isUndefined);
+ v8::Handle<v8::Value> result = v8value(isUndefined);
rv = ep->v8engine()->toVariant(result->v4Value(), -1);
}