From 619b431b29ff7e4e2ccfab1121fd9ecd848cd0a7 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Mon, 8 Aug 2022 18:36:02 +0200 Subject: FutureUtils: chain: Pass future as const& The move overload hasn't any advantages here as the QFutureWatcher also takes QFuture const &. --- src/base/QXmppFutureUtils_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/base/QXmppFutureUtils_p.h b/src/base/QXmppFutureUtils_p.h index 311b2752..bf8c2f35 100644 --- a/src/base/QXmppFutureUtils_p.h +++ b/src/base/QXmppFutureUtils_p.h @@ -104,7 +104,7 @@ void await(const QFuture &future, QObject *context, Handler handler) } template -auto chain(QFuture &&source, QObject *context, Converter task) -> QFuture +auto chain(const QFuture &source, QObject *context, Converter task) -> QFuture { QFutureInterface resultInterface(QFutureInterfaceBase::Started); -- cgit v1.2.3