From 0161f00e5043090f22b23de9822c09062b17d675 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 27 Jul 2020 19:16:17 +0200 Subject: Use QMetaType in QMetaCallEvent And don't use int based type mapping anymore. Change-Id: I456e76d1933ef646a7bd39ce565886b89e938a44 Reviewed-by: Thiago Macieira --- src/network/kernel/qhostinfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/network/kernel') 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(); auto hostInfoType = QMetaType::fromType(); - 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]); -- cgit v1.2.3