aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4debugging.cpp
diff options
context:
space:
mode:
authorOleg Shparber <trollixx@gmail.com>2014-12-31 10:43:46 -0800
committerOleg Shparber <trollixx@gmail.com>2015-01-02 21:29:48 +0100
commit21d481c209692ec73ab6b6bc43e6977fc2f8c2fc (patch)
treec691a8a9ec3a275a1adfe7f2dca741ca77032648 /src/qml/jsruntime/qv4debugging.cpp
parent2fadffdc4630eca35d775d973a368feae2630bd9 (diff)
Use QV4::ScopedContext typedef instead of actual type
Change-Id: I71c6c9cf030e347fbc5e4073e9ca338a9ce95999 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4debugging.cpp')
-rw-r--r--src/qml/jsruntime/qv4debugging.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4debugging.cpp b/src/qml/jsruntime/qv4debugging.cpp
index 22815b8542..85874d1318 100644
--- a/src/qml/jsruntime/qv4debugging.cpp
+++ b/src/qml/jsruntime/qv4debugging.cpp
@@ -278,7 +278,7 @@ static inline Heap::CallContext *findContext(Heap::ExecutionContext *ctxt, int f
return 0;
Scope scope(ctxt->engine);
- Scoped<ExecutionContext> ctx(scope, ctxt);
+ ScopedContext ctx(scope, ctxt);
while (ctx) {
CallContext *cCtxt = ctx->asCallContext();
if (cCtxt && cCtxt->d()->function) {
@@ -298,7 +298,7 @@ static inline Heap::CallContext *findScope(Heap::ExecutionContext *ctxt, int sco
return 0;
Scope s(ctxt->engine);
- Scoped<ExecutionContext> ctx(s, ctxt);
+ ScopedContext ctx(s, ctxt);
for (; scope > 0 && ctx; --scope)
ctx = ctx->d()->outer;
@@ -427,7 +427,7 @@ bool Debugger::collectThisInContext(Debugger::Collector *collector, int frame)
bool myRun()
{
Scope scope(engine);
- Scoped<ExecutionContext> ctxt(scope, findContext(engine->currentContext(), frameNr));
+ ScopedContext ctxt(scope, findContext(engine->currentContext(), frameNr));
while (ctxt) {
if (CallContext *cCtxt = ctxt->asCallContext())
if (cCtxt->d()->activation)
@@ -500,7 +500,7 @@ QVector<Heap::ExecutionContext::ContextType> Debugger::getScopeTypes(int frame)
if (!sctxt || sctxt->d()->type < Heap::ExecutionContext::Type_SimpleCallContext)
return types;
- Scoped<ExecutionContext> it(scope, sctxt->d());
+ ScopedContext it(scope, sctxt->d());
for (; it; it = it->d()->outer)
types.append(it->d()->type);