aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4context.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-02-13 15:23:13 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-04-24 15:20:28 +0000
commit3dd0a2328cde175dbdcbb8af94b5984f7d84796f (patch)
tree6a82e78909ac49ebd3de3ebdfd150fa0851866af /src/qml/jsruntime/qv4context.cpp
parent3830ad49cbab8ecacc17d7be81374e5b1727a21c (diff)
More cleanups in qv4value_p.h
Change-Id: Ie48dc8f95daa4738e690902b5d33010afa7b974f Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r--src/qml/jsruntime/qv4context.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp
index 0ef7d56c4d..11bfa62afc 100644
--- a/src/qml/jsruntime/qv4context.cpp
+++ b/src/qml/jsruntime/qv4context.cpp
@@ -154,7 +154,7 @@ Heap::CatchContext::CatchContext(ExecutionEngine *engine, QV4::String *exception
lookups = parent->lookups;
compilationUnit = parent->compilationUnit;
- this->exceptionVarName = exceptionVarName;
+ this->exceptionVarName = exceptionVarName->d();
this->exceptionValue = exceptionValue;
}
@@ -217,7 +217,7 @@ bool ExecutionContext::deleteProperty(String *name)
return withObject->deleteProperty(name);
} else if (ctx->d()->type == Heap::ExecutionContext::Type_CatchContext) {
Heap::CatchContext *c = static_cast<Heap::CatchContext *>(ctx->d());
- if (c->exceptionVarName->isEqualTo(name))
+ if (c->exceptionVarName->isEqualTo(name->d()))
return false;
} else if (ctx->d()->type >= Heap::ExecutionContext::Type_CallContext) {
Heap::CallContext *c = static_cast<Heap::CallContext *>(ctx->d());
@@ -290,7 +290,7 @@ void ExecutionContext::setProperty(String *name, const Value &value)
w->put(name, value);
return;
}
- } else if (ctx->d()->type == Heap::ExecutionContext::Type_CatchContext && static_cast<Heap::CatchContext *>(ctx->d())->exceptionVarName->isEqualTo(name)) {
+ } else if (ctx->d()->type == Heap::ExecutionContext::Type_CatchContext && static_cast<Heap::CatchContext *>(ctx->d())->exceptionVarName->isEqualTo(name->d())) {
static_cast<Heap::CatchContext *>(ctx->d())->exceptionValue = value;
return;
} else {
@@ -363,7 +363,7 @@ ReturnedValue ExecutionContext::getProperty(String *name)
else if (ctx->d()->type == Heap::ExecutionContext::Type_CatchContext) {
hasCatchScope = true;
Heap::CatchContext *c = static_cast<Heap::CatchContext *>(ctx->d());
- if (c->exceptionVarName->isEqualTo(name))
+ if (c->exceptionVarName->isEqualTo(name->d()))
return c->exceptionValue.asReturnedValue();
}
@@ -431,7 +431,7 @@ ReturnedValue ExecutionContext::getPropertyAndBase(String *name, Heap::Object **
else if (ctx->d()->type == Heap::ExecutionContext::Type_CatchContext) {
hasCatchScope = true;
Heap::CatchContext *c = static_cast<Heap::CatchContext *>(ctx->d());
- if (c->exceptionVarName->isEqualTo(name))
+ if (c->exceptionVarName->isEqualTo(name->d()))
return c->exceptionValue.asReturnedValue();
}