From 1956ec4792f557a910e195e2276a124550337aeb Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Wed, 23 May 2012 23:09:15 +0200 Subject: [PATCH] Fix the logic in void return type check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/qml/qml/v8/qv8qobjectwrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/qml/v8/qv8qobjectwrapper.cpp b/src/qml/qml/v8/qv8qobjectwrapper.cpp index f540ce1..d7e55e2 100644 --- a/src/qml/qml/v8/qv8qobjectwrapper.cpp +++ b/src/qml/qml/v8/qv8qobjectwrapper.cpp @@ -1555,7 +1555,7 @@ static v8::Handle CallMethod(QObject *object, int index, int returnTy return args[0].toValue(engine); - } else if (returnType != 0) { + } else if (returnType != QMetaType::Void) { CallArgument arg; arg.initAsType(returnType); -- 2.7.4