summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptengine.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-08-19 18:14:08 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-08-19 18:14:08 (GMT)
commit0cf913d4b73ae1bf7182e6eeaab518fe5d7a2fe8 (patch)
tree4df1ed8cdd22c71642d6d2458f74156b4c4f91c8 /src/script/api/qscriptengine.cpp
parent7404b1124022510fb39b204c8fd0d41dc738b180 (diff)
downloadQt-0cf913d4b73ae1bf7182e6eeaab518fe5d7a2fe8.zip
Qt-0cf913d4b73ae1bf7182e6eeaab518fe5d7a2fe8.tar.gz
Qt-0cf913d4b73ae1bf7182e6eeaab518fe5d7a2fe8.tar.bz2
Do not pass JSValue per const reference
It is a POD with the size of a pointer
Diffstat (limited to 'src/script/api/qscriptengine.cpp')
-rw-r--r--src/script/api/qscriptengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp
index 0e47cde..1b8573c 100644
--- a/src/script/api/qscriptengine.cpp
+++ b/src/script/api/qscriptengine.cpp
@@ -457,7 +457,7 @@ QScriptEnginePrivate *scriptEngineFromExec(const JSC::ExecState *exec)
return static_cast<GlobalClientData*>(exec->globalData().clientData)->engine;
}
-bool isFunction(const JSC::JSValue &value)
+bool isFunction(JSC::JSValue value)
{
if (!value || !value.isObject())
return false;
@@ -2284,7 +2284,7 @@ QScriptContext *QScriptEngine::pushContext()
return the new top frame. (might be the same as exec if a new stackframe was not needed) or 0 if stack overflow
*/
-JSC::CallFrame *QScriptEnginePrivate::pushContext(JSC::CallFrame *exec, const JSC::JSValue &_thisObject,
+JSC::CallFrame *QScriptEnginePrivate::pushContext(JSC::CallFrame *exec, JSC::JSValue _thisObject,
const JSC::ArgList& args, JSC::JSObject *callee, bool calledAsConstructor)
{
JSC::JSValue thisObject = _thisObject;