aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4managed_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-11 15:09:25 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-18 13:13:30 +0200
commit8d26084ae56ba5aedd73ab733553dbf9cb3eb672 (patch)
treec0c14b3fdb87bdb23d5612de77605b98aa03dd52 /src/qml/jsruntime/qv4managed_p.h
parent4691396f96cf8468a9ee4fbb339cc94e339928a7 (diff)
Use ReturnedValue for Managed::construct()
Change-Id: I9e702d60c4e1b7ba19a699ff7a8d53876d6cd5f7 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4managed_p.h')
-rw-r--r--src/qml/jsruntime/qv4managed_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4managed_p.h b/src/qml/jsruntime/qv4managed_p.h
index a71ee717db..44d809c605 100644
--- a/src/qml/jsruntime/qv4managed_p.h
+++ b/src/qml/jsruntime/qv4managed_p.h
@@ -92,7 +92,7 @@ struct CallData
struct ManagedVTable
{
ReturnedValue (*call)(Managed *, CallData *data);
- Value (*construct)(Managed *, CallData *data);
+ ReturnedValue (*construct)(Managed *, CallData *data);
void (*markObjects)(Managed *);
void (*destroy)(Managed *);
void (*collectDeletables)(Managed *, GCDeletable **deletable);
@@ -252,7 +252,7 @@ public:
inline bool hasInstance(const Value &v) {
return vtbl->hasInstance(this, v);
}
- Value construct(CallData *d);
+ ReturnedValue construct(CallData *d);
ReturnedValue call(CallData *d);
Value get(String *name, bool *hasProperty = 0);
Value getIndexed(uint index, bool *hasProperty = 0);
@@ -281,7 +281,7 @@ public:
static void destroy(Managed *that) { that->_data = 0; }
static bool hasInstance(Managed *that, const Value &value);
- static Value construct(Managed *m, CallData *d);
+ static ReturnedValue construct(Managed *m, CallData *d);
static ReturnedValue call(Managed *m, CallData *);
static void getLookup(Managed *m, Lookup *, Value *);
static void setLookup(Managed *m, Lookup *l, const Value &v);