diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-31 13:27:33 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-31 14:11:48 (GMT) |
commit | 31263060c53597bfc7677ccc526cc8a19f62b387 (patch) | |
tree | 07c4d434d902c0bbf31c0233718ac043d1f686b6 /src/script/api/qscriptengine_p.h | |
parent | 701303d374b7da33166744d290ec4dbc789c7031 (diff) | |
download | Qt-31263060c53597bfc7677ccc526cc8a19f62b387.zip Qt-31263060c53597bfc7677ccc526cc8a19f62b387.tar.gz Qt-31263060c53597bfc7677ccc526cc8a19f62b387.tar.bz2 |
Remove QScriptContextPrivate, QScriptContext is now a JSC::CallFrame
There will not be instances of QScriptContext anymore. Pointer to
QScriptContext are just pointer to JSC::CallFrame
This simplifies the code as we do not need to manage the memory for the
QScriptContext anymore.
It is compatible because it is not possible to create
QScriptContext. They were all created by QScriptEngine.
QScriptContext constructor is private.
Aknoweldged-by: Kent
Diffstat (limited to 'src/script/api/qscriptengine_p.h')
-rw-r--r-- | src/script/api/qscriptengine_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/api/qscriptengine_p.h b/src/script/api/qscriptengine_p.h index c61e960..f6d7700 100644 --- a/src/script/api/qscriptengine_p.h +++ b/src/script/api/qscriptengine_p.h @@ -70,6 +70,7 @@ QT_BEGIN_NAMESPACE namespace JSC { class ExecState; + typedef ExecState CallFrame; class JSCell; class JSGlobalObject; class UString; @@ -99,7 +100,7 @@ namespace QScript //some conversion helper functions JSC::UString qtStringToJSCUString(const QString &str); QString qtStringFromJSCUString(const JSC::UString &str); - QScriptEnginePrivate *scriptEngineFromExec(JSC::ExecState *exec); + QScriptEnginePrivate *scriptEngineFromExec(const JSC::ExecState *exec); bool isFunction(const JSC::JSValue &value); } |