Fix the logic in void return type check
authorKent Hansen <kent.hansen@nokia.com>
Wed, 23 May 2012 21:09:15 +0000 (23:09 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 24 May 2012 09:22:14 +0000 (11:22 +0200)
commit1956ec4792f557a910e195e2276a124550337aeb
tree7e23f6479edafce951c1870ad1986e3277032eb7
parent9539b88b7c36efb582f225fb1207db4fc27d3f49
Fix the logic in void return type check

Since the introduction of QMetaType::UnknownType, QMetaType::Void no
longer has value 0. Hence, the optimization in this code (avoiding
return type construction/passing/conversion when the return type is
void) was "lost".

Change-Id: I32313f8287c4f0e01fee3c2b4ba722f31457242c
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
src/qml/qml/v8/qv8qobjectwrapper.cpp