aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4errorobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-10-10 16:17:28 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-11 08:56:26 +0200
commit40db24351b6a89a3fb30a4870afdf90a4b91663f (patch)
tree2fa70623d615cef347c4ad3f9e8422455abc4aa3 /src/qml/jsruntime/qv4errorobject.cpp
parentb0e83cdc1a3a80ecc26cb31ac046b6c743238d41 (diff)
Smaller cleanups
Change-Id: I0a7eee96ef7c92ad4a3c5963010e3ac66fe6ed3a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4errorobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4errorobject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4errorobject.cpp b/src/qml/jsruntime/qv4errorobject.cpp
index 58375ea51e..ef9dc473f3 100644
--- a/src/qml/jsruntime/qv4errorobject.cpp
+++ b/src/qml/jsruntime/qv4errorobject.cpp
@@ -169,7 +169,8 @@ ErrorObject::ErrorObject(InternalClass *ic, const QString &message, const QStrin
ReturnedValue ErrorObject::method_get_stack(SimpleCallContext *ctx)
{
- ErrorObject *This = ctx->callData->thisObject.asErrorObject();
+ Scope scope(ctx);
+ Scoped<ErrorObject> This(scope, ctx->callData->thisObject);
if (!This)
ctx->throwTypeError();
if (!This->stack) {