From 47fbcb47771a36ab9fd0a4d5ede7b7504ab1410d Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sun, 11 Jan 2015 16:30:29 +0100 Subject: Get rid of all uses of Managed::engine() Change-Id: I596f14554d81f5e9af9996294d96047f2e810bef Reviewed-by: Simon Hausmann --- src/imports/localstorage/plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/imports/localstorage/plugin.cpp') diff --git a/src/imports/localstorage/plugin.cpp b/src/imports/localstorage/plugin.cpp index 2de47b232a..5b99783431 100644 --- a/src/imports/localstorage/plugin.cpp +++ b/src/imports/localstorage/plugin.cpp @@ -240,13 +240,13 @@ static ReturnedValue qmlsqldatabase_rows_index(QQmlSqlDatabaseWrapper *r, Execut ReturnedValue QQmlSqlDatabaseWrapper::getIndexed(Managed *m, uint index, bool *hasProperty) { - QV4::Scope scope(m->engine()); + QV4::Scope scope(static_cast(m)->engine()); Q_ASSERT(m->as()); QV4::Scoped r(scope, static_cast(m)); if (!r || r->d()->type != Heap::QQmlSqlDatabaseWrapper::Rows) return Object::getIndexed(m, index, hasProperty); - return qmlsqldatabase_rows_index(r, m->engine(), index, hasProperty); + return qmlsqldatabase_rows_index(r, scope.engine, index, hasProperty); } static ReturnedValue qmlsqldatabase_rows_item(CallContext *ctx) -- cgit v1.2.3