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>
return args[0].toValue(engine);
- } else if (returnType != 0) {
+ } else if (returnType != QMetaType::Void) {
CallArgument arg;
arg.initAsType(returnType);