Fix unsafe casting to target thisobject in class generator
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 8 May 2013 18:26:04 +0000 (20:26 +0200)
committerLars Knoll <lars.knoll@digia.com>
Thu, 9 May 2013 06:30:36 +0000 (08:30 +0200)
commitaeeb3648b41f7ca4d08faa5a8ca771df9e343aca
tree12fabcdeb7cd7cc90d5e7edfb13b385455c9bc19
parent3075027384cc34b72f4d439b4be36fe12895b50b
Fix unsafe casting to target thisobject in class generator

We must also check if the asFoo() on the managed object succeeds
before calling the method.

Change-Id: I26ed56fec044b54221ca44e7789a2e9d0acec9ec
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/v4/v4classgen