diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-04-03 15:51:43 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-02 14:17:17 +0000 |
commit | 13cc936859518b5fa378c7b8242d56ebf49ebce9 (patch) | |
tree | 22d3bd9c771417707c35b8891f69b72b718fb84d /src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp | |
parent | e9492e7b7b44c1f8cd5489d93463fc2b1f8b6d72 (diff) |
Remove the QString member from Identifier
First step to turning identifier into a simple int.
Change-Id: I4988587aa61f1f02ed80426ccbf00b685f38c829
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp')
-rw-r--r-- | src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp b/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp index 25ae29d8d9..c33d0026d5 100644 --- a/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp +++ b/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp @@ -46,6 +46,7 @@ #include <private/qv4objectiterator_p.h> #include <private/qv4identifier_p.h> #include <private/qv4runtime_p.h> +#include <private/qv4identifiertable_p.h> #include <private/qqmlcontext_p.h> #include <private/qqmlengine_p.h> @@ -271,7 +272,7 @@ bool QV4DataCollector::collectScope(QJsonObject *dict, int frameNr, int scopeNr) QV4::ScopedValue v(scope); QV4::Heap::InternalClass *ic = ctxt->internalClass(); for (uint i = 0; i < ic->size; ++i) { - QString name = ic->nameMap[i]->string; + QString name = scope.engine->identifierTable->stringFromIdentifier(ic->nameMap[i])->toQString(); names.append(name); v = ctxt->d()->locals[i]; collectedRefs.append(collect(v)); |