diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-05 11:38:41 +0200 |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-06 11:06:17 +0200 |
commit | 4232955aa9498a5e1e4e4b3fb4662222acffe70f (patch) | |
tree | 7c1710aadf6a405c540f537596340581bc491102 /examples/script/customclass/bytearrayclass.cpp | |
parent | 6f09167b4fde25e04611557549a0d0d0cfd6a6ae (diff) | |
download | qt4-tools-4232955aa9498a5e1e4e4b3fb4662222acffe70f.tar.gz |
Remove usage of deprecated QScriptValue* function
Tests were untouched.
Regexp used:
git grep -O"sed -i 's/qScriptValueFromQMetaObject *<\([^>]*\)> *(\([^&*\(),]*\))/\\2->scriptValueFromQMetaObject<\\1>()/g'" qScriptValueFromQMetaObject
git grep -O"sed -i 's/qScriptValueFromValue(this, */toScriptValue(/'" qScriptValueFromValue
git grep -O"sed -i 's/qScriptValueFromValue(\([^&*\(),]*\), */\\1->toScriptValue(/'" qScriptValueFromValue
git grep -O"sed -i 's/qScriptValueFromValue(&\([^&*\(),]*\), */\\1.toScriptValue(/'" qScriptValueFromValue
git grep -O"sed -i 's/qScriptValueToValue</qscriptvalue_cast</'" qScriptValueToValue
Rev-by: dev mailing list
Diffstat (limited to 'examples/script/customclass/bytearrayclass.cpp')
-rw-r--r-- | examples/script/customclass/bytearrayclass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/script/customclass/bytearrayclass.cpp b/examples/script/customclass/bytearrayclass.cpp index 0a1ad2da0d..7bf6d3f38b 100644 --- a/examples/script/customclass/bytearrayclass.cpp +++ b/examples/script/customclass/bytearrayclass.cpp @@ -88,7 +88,7 @@ ByteArrayClass::ByteArrayClass(QScriptEngine *engine) proto.setPrototype(global.property("Object").property("prototype")); ctor = engine->newFunction(construct, proto); - ctor.setData(qScriptValueFromValue(engine, this)); + ctor.setData(engine->toScriptValue(this)); } //! [0] |