diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-07-21 22:43:43 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2023-08-10 21:50:59 +0200 |
commit | 4cf51f46166b50904f0161f028a9ff1c9ba5ae3e (patch) | |
tree | 0810cfc35b0333bdf6af1c6ad6638a50053b8421 /src/network/kernel | |
parent | 9fb3bd05a8877a2b5f3b8d64cfd6e3c0e523bf6d (diff) |
QHostInfo: use new QMetaCallEvent::create() overload
Move the SlotObjUniquePtr directly into the QMetaCallEvent, without
having to up and down the ref-count.
Pick-to: 6.6 6.5
Change-Id: I029f71c60defce71ac8778547efe999ce0cf7b4b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/network/kernel')
-rw-r--r-- | src/network/kernel/qhostinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp index 3e1b019a93..446f9ce4db 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); } |