diff options
author | Lars Knoll <lars.knoll@digia.com> | 2014-05-08 08:52:14 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-07-22 13:49:14 +0200 |
commit | 0732e0177e62590c812f0fea9c32f7d427bd933f (patch) | |
tree | 7c260879c124c167ba2dd9e45d7a15f2fbd356b2 /src/qml/jsruntime/qv4scopedvalue_p.h | |
parent | 4e11a7a9e8ba49474bfdbdb9f4c565ebd39de595 (diff) |
Get rid of CallDataRef
The class didn't really add any value.
Change-Id: Ibd63c9b9b1fa3be6bfe8a70ca7fd4d6bf0c0019c
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4scopedvalue_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4scopedvalue_p.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/qml/jsruntime/qv4scopedvalue_p.h b/src/qml/jsruntime/qv4scopedvalue_p.h index fc339904e9..dfaa7e68bc 100644 --- a/src/qml/jsruntime/qv4scopedvalue_p.h +++ b/src/qml/jsruntime/qv4scopedvalue_p.h @@ -399,38 +399,6 @@ inline Scoped<T> &Scoped<T>::operator=(const ValueRef &v) return *this; } -struct CallDataRef { - CallDataRef(const ScopedCallData &c) - : ptr(c.ptr) {} - CallDataRef(CallData *v) { ptr = v; } - // Important: Do NOT add a copy constructor to this class - // adding a copy constructor actually changes the calling convention, ie. - // is not even binary compatible. Adding it would break assumptions made - // in the jit'ed code. - CallDataRef &operator=(const ScopedCallData &c) - { *ptr = *c.ptr; return *this; } - CallDataRef &operator=(const CallDataRef &o) - { *ptr = *o.ptr; return *this; } - - operator const CallData *() const { - return ptr; - } - const CallData *operator->() const { - return ptr; - } - - operator CallData *() { - return ptr; - } - CallData *operator->() { - return ptr; - } - -private: - CallData *ptr; -}; - - template <typename T> inline Value &Value::operator=(Returned<T> *t) { |