aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4identifiertable.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-06-23 23:27:14 +0200
committerLars Knoll <lars.knoll@qt.io>2018-07-02 19:29:47 +0000
commitf1703895e2fc9ec5da3a38a3ffef927a8f4ed86c (patch)
treed5bc803ce71530f0c762f82f0a73ae04cfcbc03f /src/qml/jsruntime/qv4identifiertable.cpp
parent56bff8f7abc2f0eeadd4d197667132af6eed6f3a (diff)
Rename IdentifierTable methods
identifier -> asPropertyKey Change-Id: I4e6f33bdad12e901303ec6101dd2b8d6b0e99ac4 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4identifiertable.cpp')
-rw-r--r--src/qml/jsruntime/qv4identifiertable.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4identifiertable.cpp b/src/qml/jsruntime/qv4identifiertable.cpp
index f6e0ef330a..c1457b2769 100644
--- a/src/qml/jsruntime/qv4identifiertable.cpp
+++ b/src/qml/jsruntime/qv4identifiertable.cpp
@@ -190,7 +190,7 @@ Heap::Symbol *IdentifierTable::insertSymbol(const QString &s)
}
-PropertyKey IdentifierTable::identifierImpl(const Heap::String *str)
+PropertyKey IdentifierTable::asPropertyKeyImpl(const Heap::String *str)
{
if (str->identifier.isValid())
return str->identifier;
@@ -306,17 +306,17 @@ void IdentifierTable::sweep()
size -= freed;
}
-PropertyKey IdentifierTable::identifier(const QString &s)
+PropertyKey IdentifierTable::asPropertyKey(const QString &s)
{
return insertString(s)->identifier;
}
-PropertyKey IdentifierTable::identifier(const char *s, int len)
+PropertyKey IdentifierTable::asPropertyKey(const char *s, int len)
{
uint subtype;
uint hash = String::createHashValue(s, len, &subtype);
if (hash == UINT_MAX)
- return identifier(QString::fromUtf8(s, len));
+ return asPropertyKey(QString::fromUtf8(s, len));
QLatin1String latin(s, len);
uint idx = hash % alloc;