From 2e59a4415240d00a31b1c327007539a58c2d11bb Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 17 Aug 2011 10:43:18 +0200 Subject: [PATCH] Fix repeated compiler warning about unused engine parameter It's unused, remove it :) Change-Id: I75f352dd3e35626603658f78e00cf6b472075df4 Reviewed-on: http://codereview.qt.nokia.com/3074 Reviewed-by: Qt Sanity Bot Reviewed-by: Kent Hansen --- .../qml/v8/qscriptoriginalglobalobject_p.h | 4 ++-- src/declarative/qml/v8/qv8engine.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/declarative/qml/v8/qscriptoriginalglobalobject_p.h b/src/declarative/qml/v8/qscriptoriginalglobalobject_p.h index c46d0e3..c0a761f 100644 --- a/src/declarative/qml/v8/qscriptoriginalglobalobject_p.h +++ b/src/declarative/qml/v8/qscriptoriginalglobalobject_p.h @@ -49,7 +49,7 @@ class QV8Engine; class QScriptOriginalGlobalObject { public: - inline QScriptOriginalGlobalObject(const QV8Engine *engine, v8::Handle context); + inline QScriptOriginalGlobalObject(v8::Handle context); inline void destroy(); inline QJSValue::PropertyFlags getPropertyFlags(v8::Handle object, v8::Handle property); @@ -63,7 +63,7 @@ private: v8::Persistent m_globalObject; }; -QScriptOriginalGlobalObject::QScriptOriginalGlobalObject(const QV8Engine *engine, v8::Handle context) +QScriptOriginalGlobalObject::QScriptOriginalGlobalObject(v8::Handle context) { // Please notice that engine is not fully initialized at this point. diff --git a/src/declarative/qml/v8/qv8engine.cpp b/src/declarative/qml/v8/qv8engine.cpp index c8de55d..b2f98ac 100644 --- a/src/declarative/qml/v8/qv8engine.cpp +++ b/src/declarative/qml/v8/qv8engine.cpp @@ -116,7 +116,7 @@ QV8Engine::QV8Engine(QJSEngine* qq, QJSEngine::ContextOwnership ownership) , m_engine(0) , m_ownsV8Context(ownership == QJSEngine::CreateNewContext) , m_context((ownership == QJSEngine::CreateNewContext) ? v8::Context::New() : v8::Persistent::New(v8::Context::GetCurrent())) - , m_originalGlobalObject(this, m_context) + , m_originalGlobalObject(m_context) , m_xmlHttpRequestData(0) , m_sqlDatabaseData(0) , m_listModelData(0) -- 1.7.2.5