summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib')
-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();
}
/*!