Remove QJSEngine::undefinedValue() function
authorKent Hansen <kent.hansen@nokia.com>
Wed, 18 Jan 2012 06:03:48 +0000 (07:03 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 2 Feb 2012 11:07:13 +0000 (12:07 +0100)
commit52b77f94ab193c40096a5a3c106fcb2128085a30
treeab6559cbcfc9babead88477d798e15679c0f69eb
parentfe6173c580ea58529d3b784c8396eabe3a394e85
Remove QJSEngine::undefinedValue() function

Rationale: It's strange to have an undefined value factory function.
There should just be one way of constructing undefined values: By
passing UndefinedValue to the QJSValue constructor.

The undefinedValue() function created a value that was bound to the
engine; the QJSValue constructor does not. In order to ensure that
we're testing the same behavior as before, I've replaced
undefinedValue() calls by toScriptValue(QVariant()) in the autotests.

Task-number: QTBUG-23604
Change-Id: Ie9295b7af49c853b5a4a3445da48c325fef8d6b1
Reviewed-by: JÄ™drzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
src/declarative/qml/v8/qjsengine.cpp
src/declarative/qml/v8/qjsengine.h
src/declarative/qml/v8/qjsvalue.cpp
tests/auto/declarative/qjsvalue/tst_qjsvalue.cpp