summaryrefslogtreecommitdiffstats
path: root/src/network/kernel/qhostinfo.h
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2017-04-22 13:21:28 +0200
committerOlivier Goffart (Woboq GmbH) <ogoffart@woboq.com>2017-04-29 08:24:24 +0000
commit9d918495ee56dca5826070df888d20adfcc29641 (patch)
treef747852109c01af142ca8fe2e100c13a0c690247 /src/network/kernel/qhostinfo.h
parenta6c091c2d18f6e7f849da7dfa3bd1971017fca73 (diff)
Add a few std::move in functions accepting slots
This allows the use of move-only function objects Task-number: QTBUG-60339 Change-Id: If3595fca338cf7f3039eb566cc02e4e73cd04c86 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/kernel/qhostinfo.h')
-rw-r--r--src/network/kernel/qhostinfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/kernel/qhostinfo.h b/src/network/kernel/qhostinfo.h
index 4484d718bd..00c70ae9b9 100644
--- a/src/network/kernel/qhostinfo.h
+++ b/src/network/kernel/qhostinfo.h
@@ -125,7 +125,7 @@ public:
!std::is_same<const char *, Func>::value, int>::type
lookupHost(const QString &name, Func slot)
{
- return lookupHost(name, nullptr, slot);
+ return lookupHost(name, nullptr, std::move(slot));
}
// lookupHost to a functor or function pointer (with context)
@@ -141,7 +141,7 @@ public:
auto slotObj = new QtPrivate::QFunctorSlotObject<Func1, 1,
typename QtPrivate::List<QHostInfo>,
- void>(slot);
+ void>(std::move(slot));
return lookupHostImpl(name, context, slotObj);
}
#endif // Q_QDOC