summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-06-16 13:19:59 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-06-18 11:57:38 +0200
commitadd1807d4447cada265dd3565f4adb0bb8d2bff2 (patch)
treedaa723204e3259bcd29488a813d4aea863df19c3
parenta60f266d415bf128454d4eb1f22542d362c53c31 (diff)
QMetaMethod: implement returnType via returnMetaType
Change-Id: I6c77331c3bfe83b00e4bbdf960216df696aadabd Reviewed-by: Lars Knoll <lars.knoll@qt.io>
-rw-r--r--src/corelib/kernel/qmetaobject.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/corelib/kernel/qmetaobject.cpp b/src/corelib/kernel/qmetaobject.cpp
index a94c0c7d5f..6799057080 100644
--- a/src/corelib/kernel/qmetaobject.cpp
+++ b/src/corelib/kernel/qmetaobject.cpp
@@ -1854,9 +1854,7 @@ QByteArray QMetaMethod::name() const
*/
int QMetaMethod::returnType() const
{
- if (!mobj)
- return QMetaType::UnknownType;
- return QMetaMethodPrivate::get(this)->returnType();
+ return returnMetaType().id();
}
/*!