summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2023-07-21 22:43:43 +0200
committerQt Cherry-pick Bot <[email protected]>2023-08-10 21:58:52 +0000
commitc79e71fe2cc66af384a6cb7128c8989d14c87464 (patch)
tree12f5908f4f31de73091332c941e4f6582ab943f1
parent94124571b5887a7c6ba5eafb19ec956b0095a966 (diff)
QHostInfo: use new QMetaCallEvent::create() overload
Move the SlotObjUniquePtr directly into the QMetaCallEvent, without having to up and down the ref-count. Change-Id: I029f71c60defce71ac8778547efe999ce0cf7b4b Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Fabian Kosmale <[email protected]> (cherry picked from commit 4cf51f46166b50904f0161f028a9ff1c9ba5ae3e) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
-rw-r--r--src/network/kernel/qhostinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp
index 3e1b019a93e..446f9ce4db3 100644
--- a/src/network/kernel/qhostinfo.cpp
+++ b/src/network/kernel/qhostinfo.cpp
@@ -110,7 +110,7 @@ void QHostInfoResult::postResultsReady(const QHostInfo &info)
auto result = new QHostInfoResult(this);
Q_CHECK_PTR(result);
- auto metaCallEvent = QMetaCallEvent::create(slotObj.get(), nullptr, signal_index, info);
+ auto metaCallEvent = QMetaCallEvent::create(std::move(slotObj), nullptr, signal_index, info);
Q_CHECK_PTR(metaCallEvent);
qApp->postEvent(result, metaCallEvent);
}