Remove QJSEngine::nullValue() function
authorKent Hansen <kent.hansen@nokia.com>
Wed, 18 Jan 2012 05:53:39 +0000 (06:53 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 2 Feb 2012 07:10:37 +0000 (08:10 +0100)
commitfd7fce388e31174a5179d92b56911d974bf11024
treee018b0289b8abe21ee18ca9a0ae72b5f90fe24e8
parentf4c9823007c6819751c034ecb0110d10f02d4c73
Remove QJSEngine::nullValue() function

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

The nullValue() 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 nullValue()
calls by evaluate("null") in the autotests.

Task-number: QTBUG-23604
Change-Id: Ie40b61fa64e070b90c6245fd21554963073c5f80
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@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