diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-06-25 23:18:33 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-07-03 08:08:35 +0000 |
commit | 61440411a979c7c317bafccfbf5201d969819a06 (patch) | |
tree | 6c5825e21e75587121351bc612a76a7af81ef7be /src/qml/jsruntime/qv4arraydata_p.h | |
parent | 2aabdd187aae8a953cfcebac8f6c1ba7b19a0727 (diff) |
Prefix vtable methods with virtual
Turns out that the overloading of vtable methods and regular
ones is problematic in some cases. So let's rather make it explicit
which methods are part of the vtable, and which aren't.
Change-Id: Ifee32a26104d30f3c82bca8b5a9cdea2d4f4f526
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4arraydata_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4arraydata_p.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/qml/jsruntime/qv4arraydata_p.h b/src/qml/jsruntime/qv4arraydata_p.h index 35a9488f1f..ac5b430356 100644 --- a/src/qml/jsruntime/qv4arraydata_p.h +++ b/src/qml/jsruntime/qv4arraydata_p.h @@ -215,17 +215,6 @@ struct Q_QML_EXPORT ArrayData : public Managed static void sort(ExecutionEngine *engine, Object *thisObject, const Value &comparefn, uint dataLen); static uint append(Object *obj, ArrayObject *otherObj, uint n); static void insert(Object *o, uint index, const Value *v, bool isAccessor = false); - -protected: - // Vtable methods required to get things to compile - static ReturnedValue get(const Managed *, PropertyKey, const Value *, bool *) { - Q_UNREACHABLE(); - return Encode::undefined(); - } - static bool put(Managed *, PropertyKey, const Value &, Value *) { - Q_UNREACHABLE(); - return false; - } }; struct Q_QML_EXPORT SimpleArrayData : public ArrayData @@ -250,10 +239,6 @@ struct Q_QML_EXPORT SimpleArrayData : public ArrayData static ReturnedValue pop_front(Object *o); static uint truncate(Object *o, uint newLen); static uint length(const Heap::ArrayData *d); - -protected: - using ArrayData::get; - using ArrayData::put; }; struct Q_QML_EXPORT SparseArrayData : public ArrayData @@ -280,10 +265,6 @@ struct Q_QML_EXPORT SparseArrayData : public ArrayData static ReturnedValue pop_front(Object *o); static uint truncate(Object *o, uint newLen); static uint length(const Heap::ArrayData *d); - -protected: - using ArrayData::get; - using ArrayData::put; }; namespace Heap { |