diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-08-28 13:33:10 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-09-22 08:20:13 +0000 |
commit | 13edffa303c0a4514035857b4a61b2665ede7b2c (patch) | |
tree | b284190179941285ca2397ab61c593a6e864ba91 /src/imports/localstorage/plugin.cpp | |
parent | 2a8de9d8d85c5ce3e9c61fd8c0e957521f6a0846 (diff) |
Move remaining objects to new constructor syntax
Also disable the old way of constructing objects.
Change-Id: Ib4e69087cd563ae1481da116d6caf97876239798
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/imports/localstorage/plugin.cpp')
-rw-r--r-- | src/imports/localstorage/plugin.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/imports/localstorage/plugin.cpp b/src/imports/localstorage/plugin.cpp index ba763827d2..ada50774a7 100644 --- a/src/imports/localstorage/plugin.cpp +++ b/src/imports/localstorage/plugin.cpp @@ -97,7 +97,10 @@ namespace QV4 { namespace Heap { struct QQmlSqlDatabaseWrapper : public Object { enum Type { Database, Query, Rows }; - QQmlSqlDatabaseWrapper(ExecutionEngine *e); + QQmlSqlDatabaseWrapper() + { + type = Database; + } Type type; QSqlDatabase database; @@ -120,7 +123,7 @@ public: static Heap::QQmlSqlDatabaseWrapper *create(QV4::ExecutionEngine *engine) { - return engine->memoryManager->alloc<QQmlSqlDatabaseWrapper>(engine); + return engine->memoryManager->allocObject<QQmlSqlDatabaseWrapper>(); } ~QQmlSqlDatabaseWrapper() { @@ -135,11 +138,7 @@ using namespace QV4; DEFINE_OBJECT_VTABLE(QV4::QQmlSqlDatabaseWrapper); -QV4::Heap::QQmlSqlDatabaseWrapper::QQmlSqlDatabaseWrapper(ExecutionEngine *e) - : QV4::Heap::Object(e) -{ - type = Database; -} + static ReturnedValue qmlsqldatabase_version(CallContext *ctx) { |