aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/memory/qv4heap_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/memory/qv4heap_p.h')
-rw-r--r--src/qml/memory/qv4heap_p.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qml/memory/qv4heap_p.h b/src/qml/memory/qv4heap_p.h
index b3dfa407f8..2cf3e721f9 100644
--- a/src/qml/memory/qv4heap_p.h
+++ b/src/qml/memory/qv4heap_p.h
@@ -167,15 +167,18 @@ V4_ASSERT_IS_TRIVIAL(Base)
template <typename T, size_t o>
struct Pointer {
static Q_CONSTEXPR size_t offset = o;
- static Q_CONSTEXPR quint64 markBits = Mark_Pointer << (o >> 2);
T operator->() const { return ptr; }
operator T () const { return ptr; }
- Pointer &operator =(T t) { ptr = t; return *this; }
+ void set(ExecutionEngine *e, T newVal) {
+ Q_UNUSED(e);
+ ptr = newVal;
+ }
template <typename Type>
Type *cast() { return static_cast<Type *>(ptr); }
+private:
T ptr;
};
typedef Pointer<char *, 0> V4PointerCheck;