Don't check the this pointer for 0 in member functions
authorLars Knoll <lars.knoll@digia.com>
Mon, 27 Oct 2014 07:54:26 +0000 (08:54 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Mon, 27 Oct 2014 14:19:12 +0000 (15:19 +0100)
commit57e5407178ce05f577bd032a7bab2508434a4b02
treefed4c0d9e82d619c572bd6d86ea1cc9a92436e58
parent8539aa87345fc9a972d9b400fa42fd742b01d4ed
Don't check the this pointer for 0 in member functions

This actually violates the C++ standard that defines that
you aren't allowed to call member functions on an invalid
object.

Instead insert the 0 pointer checks on the caller side where
required.

Change-Id: I8be3c3831594bb6482e9ef6de6e590ec437ac0f8
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4argumentsobject.cpp
src/qml/jsruntime/qv4arraydata.cpp
src/qml/jsruntime/qv4arraydata_p.h
src/qml/jsruntime/qv4arrayobject.cpp
src/qml/jsruntime/qv4functionobject.cpp
src/qml/jsruntime/qv4lookup.cpp
src/qml/jsruntime/qv4object.cpp
src/qml/jsruntime/qv4objectproto.cpp
src/qml/jsruntime/qv4runtime.cpp