diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-13 21:54:21 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-18 13:14:10 +0200 |
commit | e4e90923c93adfafb23c81be7359e8df2a500b4f (patch) | |
tree | 36be927b72606c4f37326089ff3c6261f484c92b /src/qml/jsruntime/qv4context_p.h | |
parent | 9dcc12d52343960400192c817f54a16f7e1f8247 (diff) |
Convert some methods to use Returned<>
Change-Id: I631606cb5ab3b35b72104e70092a5200dd235fbc
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.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4context_p.h b/src/qml/jsruntime/qv4context_p.h index 8ebffea981..0c3b189401 100644 --- a/src/qml/jsruntime/qv4context_p.h +++ b/src/qml/jsruntime/qv4context_p.h @@ -54,6 +54,7 @@ struct ExecutionEngine; struct DeclarativeEnvironment; struct Lookup; struct Function; +struct ValueRef; namespace CompiledData { struct CompilationUnit; @@ -129,13 +130,13 @@ struct Q_QML_EXPORT ExecutionContext void createMutableBinding(String *name, bool deletable); - void Q_NORETURN throwError(const Value &value); + void Q_NORETURN throwError(const QV4::ValueRef value); void Q_NORETURN throwError(const QString &message); void Q_NORETURN throwSyntaxError(const QString &message); void Q_NORETURN throwSyntaxError(const QString &message, const QString &fileName, int line, int column); void Q_NORETURN throwTypeError(); void Q_NORETURN throwTypeError(const QString &message); - void Q_NORETURN throwReferenceError(Value value); + void Q_NORETURN throwReferenceError(const ValueRef value); void Q_NORETURN throwReferenceError(const QString &value, const QString &fileName, int line, int column); void Q_NORETURN throwRangeError(Value value); void Q_NORETURN throwURIError(Value msg); |