Get rid of Value::engine()
authorLars Knoll <lars.knoll@theqtcompany.com>
Sat, 10 Jan 2015 21:04:54 +0000 (22:04 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Mon, 12 Jan 2015 13:52:50 +0000 (14:52 +0100)
commit447844aa25754db7e868469de4537af4331709ac
tree80245a0d948e87c8cfd7a35eb5fdc93a65105ccd
parent56211be8a0429fb3e3fa268c7698e1df079aa04e
Get rid of Value::engine()

This method is not guaranteed to return an engine. We're safer
checking for the value being an object first and then getting
the engine from there.

Change-Id: I5c95e675337e545f2421613bd31c42d1e58d6f9a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsapi/qjsvalue.cpp
src/qml/jsruntime/qv4include.cpp
src/qml/jsruntime/qv4jsonobject.cpp
src/qml/jsruntime/qv4objectiterator.cpp
src/qml/jsruntime/qv4qobjectwrapper.cpp
src/qml/jsruntime/qv4sequenceobject.cpp
src/qml/jsruntime/qv4value_inl_p.h
src/qml/jsruntime/qv4value_p.h
src/qml/qml/qqmlcontextwrapper.cpp
src/qml/types/qqmldelegatemodel.cpp