diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-07-27 19:16:17 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-08-24 00:19:36 +0200 |
commit | 0161f00e5043090f22b23de9822c09062b17d675 (patch) | |
tree | e2a6d59028ada109a79c60d32186f9661eb5c67f /src/network/kernel/qhostinfo.cpp | |
parent | 700e6341e51f5e6f45303fab3d0a84a3eb249eba (diff) |
Use QMetaType in QMetaCallEvent
And don't use int based type mapping anymore.
Change-Id: I456e76d1933ef646a7bd39ce565886b89e938a44
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/kernel/qhostinfo.cpp')
-rw-r--r-- | src/network/kernel/qhostinfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp index dff87217d4..f71c6d8509 100644 --- a/src/network/kernel/qhostinfo.cpp +++ b/src/network/kernel/qhostinfo.cpp @@ -159,11 +159,11 @@ void QHostInfoResult::postResultsReady(const QHostInfo &info) auto metaCallEvent = new QMetaCallEvent(slotObj, nullptr, signal_index, nargs); Q_CHECK_PTR(metaCallEvent); void **args = metaCallEvent->args(); - int *types = metaCallEvent->types(); + QMetaType *types = metaCallEvent->types(); auto voidType = QMetaType::fromType<void>(); auto hostInfoType = QMetaType::fromType<QHostInfo>(); - types[0] = voidType.id(); - types[1] = hostInfoType.id(); + types[0] = voidType; + types[1] = hostInfoType; args[0] = nullptr; args[1] = hostInfoType.create(&info); Q_CHECK_PTR(args[1]); |