aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4context_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-19 12:05:18 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-22 01:06:20 +0200
commit713ae5106ff04d15c5854e901681d7f3386b9604 (patch)
tree938279556853d5a709920805da2c0580296d294b /src/qml/jsruntime/qv4context_p.h
parent62cf5b1b6d7dab9517dc1df2b0d1790682ed58cf (diff)
Change the runtime API over to using StringRef's instead of String*
Change-Id: I0ea95e6cca995dc5f98871f0369204af18e48111 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4context_p.h')
-rw-r--r--src/qml/jsruntime/qv4context_p.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/qml/jsruntime/qv4context_p.h b/src/qml/jsruntime/qv4context_p.h
index d4d9216dbd..f216746212 100644
--- a/src/qml/jsruntime/qv4context_p.h
+++ b/src/qml/jsruntime/qv4context_p.h
@@ -86,7 +86,7 @@ struct Q_QML_EXPORT ExecutionContext
ExecutionContext *parent;
ExecutionContext *outer;
Lookup *lookups;
- String **runtimeStrings;
+ SafeString *runtimeStrings;
CompiledData::CompilationUnit *compilationUnit;
const CompiledData::Function *compiledFunction;
ExecutionContext *next; // used in the GC
@@ -128,7 +128,7 @@ struct Q_QML_EXPORT ExecutionContext
String * const *variables() const;
unsigned int variableCount() const;
- void createMutableBinding(String *name, bool deletable);
+ void createMutableBinding(const StringRef name, bool deletable);
void Q_NORETURN throwError(const QV4::ValueRef value);
void Q_NORETURN throwError(const QString &message);
@@ -142,10 +142,10 @@ struct Q_QML_EXPORT ExecutionContext
void Q_NORETURN throwURIError(Value msg);
void Q_NORETURN throwUnimplemented(const QString &message);
- void setProperty(String *name, const ValueRef value);
- ReturnedValue getProperty(String *name);
- ReturnedValue getPropertyNoThrow(String *name);
- ReturnedValue getPropertyAndBase(String *name, Object **base);
+ void setProperty(const StringRef name, const ValueRef value);
+ ReturnedValue getProperty(const StringRef name);
+ ReturnedValue getPropertyNoThrow(const StringRef name);
+ ReturnedValue getPropertyAndBase(const StringRef name, Object **base);
bool deleteProperty(const StringRef name);
void mark();