diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2014-11-12 20:07:27 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-11-21 16:36:10 +0100 |
commit | f62bf4e76d9ae9bf685e37ace3dc6d2365e2f82f (patch) | |
tree | e3fe77546b69c0a1b82dec7306896a4b31876954 /src/qml/jsruntime/qv4debugging.cpp | |
parent | f58b5229a31e9fec49b4eb055c56f9a78e423866 (diff) | |
download | qtdeclarative-f62bf4e76d9ae9bf685e37ace3dc6d2365e2f82f.tar.gz |
Changed InternalClass to store Identifier* instead of String*
All members are identifiers anyway, so this gets rid of a ### and
also simplifies some of the call sites by removing the need for a
scoped string.
Change-Id: Ic6b550cdb97afa5a4b0fa7e9b13e7768ed3f6bd8
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4debugging.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4debugging.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4debugging.cpp b/src/qml/jsruntime/qv4debugging.cpp index 85c03914a7..8211aa584e 100644 --- a/src/qml/jsruntime/qv4debugging.cpp +++ b/src/qml/jsruntime/qv4debugging.cpp @@ -39,6 +39,7 @@ #include "qv4runtime_p.h" #include "qv4script_p.h" #include "qv4objectiterator_p.h" +#include "qv4identifier_p.h" #include <iostream> #include <algorithm> @@ -327,8 +328,8 @@ void Debugger::collectArgumentsInContext(Collector *collector, int frameNr, int int nFormals = ctxt->formalCount(); for (unsigned i = 0, ei = nFormals; i != ei; ++i) { QString qName; - if (String *name = ctxt->formals()[nFormals - i - 1]) - qName = name->toQString(); + if (Identifier *name = ctxt->formals()[nFormals - i - 1]) + qName = name->string; v = ctxt->argument(i); collector->collect(qName, v); } @@ -373,8 +374,8 @@ void Debugger::collectLocalsInContext(Collector *collector, int frameNr, int sco ScopedValue v(scope); for (unsigned i = 0, ei = ctxt->variableCount(); i != ei; ++i) { QString qName; - if (String *name = ctxt->variables()[i]) - qName = name->toQString(); + if (Identifier *name = ctxt->variables()[i]) + qName = name->string; v = ctxt->d()->locals[i]; collector->collect(qName, v); } |