aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4identifiertable.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-04-03 15:51:43 +0200
committerLars Knoll <lars.knoll@qt.io>2018-05-02 14:17:17 +0000
commit13cc936859518b5fa378c7b8242d56ebf49ebce9 (patch)
tree22d3bd9c771417707c35b8891f69b72b718fb84d /src/qml/jsruntime/qv4identifiertable.cpp
parente9492e7b7b44c1f8cd5489d93463fc2b1f8b6d72 (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/qml/jsruntime/qv4identifiertable.cpp')
-rw-r--r--src/qml/jsruntime/qv4identifiertable.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4identifiertable.cpp b/src/qml/jsruntime/qv4identifiertable.cpp
index b77f9478d3..9a86e4259f 100644
--- a/src/qml/jsruntime/qv4identifiertable.cpp
+++ b/src/qml/jsruntime/qv4identifiertable.cpp
@@ -79,7 +79,6 @@ void IdentifierTable::addEntry(Heap::String *str)
return;
str->identifier = new Identifier;
- str->identifier->string = str->toQString();
str->identifier->hashValue = hash;
bool grow = (alloc <= size*2);
@@ -158,7 +157,7 @@ Identifier *IdentifierTable::identifierImpl(const Heap::String *str)
return str->identifier;
}
-Heap::String *IdentifierTable::stringFromIdentifier(Identifier *i)
+Heap::String *IdentifierTable::stringFromIdentifier(const Identifier *i) const
{
if (!i)
return nullptr;