aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4symbol_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-04-08 14:28:40 +0200
committerLars Knoll <lars.knoll@qt.io>2018-05-02 14:18:41 +0000
commit360a48aa3f5346aa7aaff741e4ef8f5dc8701f51 (patch)
tree4ba4fc520a1387c24a667ebd51203cc6cd1e5996 /src/qml/jsruntime/qv4symbol_p.h
parentbab5e5adf578fb37402ff03f4bd5e9ed3ce4c2d2 (diff)
Implement Symbol.for and Symbol.keyFor
Change-Id: I5fde731b3a1a6d7c15154881ed82549b2800d104 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4symbol_p.h')
-rw-r--r--src/qml/jsruntime/qv4symbol_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4symbol_p.h b/src/qml/jsruntime/qv4symbol_p.h
index c33833a971..6ff60d22db 100644
--- a/src/qml/jsruntime/qv4symbol_p.h
+++ b/src/qml/jsruntime/qv4symbol_p.h
@@ -65,7 +65,7 @@ struct SymbolCtor : FunctionObject {
};
struct Symbol : StringOrSymbol {
- void init(Heap::String *description);
+ void init(const QString &s);
};
}
@@ -95,6 +95,8 @@ struct Symbol : StringOrSymbol
V4_INTERNALCLASS(Symbol)
V4_NEEDS_DESTROY
+ static Heap::Symbol *create(ExecutionEngine *e, const QString &s);
+
QString descriptiveString() const;
};