aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/base/QXmppFutureUtils_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/QXmppFutureUtils_p.h b/src/base/QXmppFutureUtils_p.h
index bc81fb19..1be0f8fa 100644
--- a/src/base/QXmppFutureUtils_p.h
+++ b/src/base/QXmppFutureUtils_p.h
@@ -62,13 +62,13 @@ QFuture<T> makeReadyFuture(T &&value)
interface.reportFinished();
return interface.future();
}
-#endif
inline QFuture<void> makeReadyFuture()
{
using State = QFutureInterfaceBase::State;
return QFutureInterface<void>(State(State::Started | State::Finished)).future();
}
+#endif
template<typename T, typename Handler>
void awaitLast(const QFuture<T> &future, QObject *context, Handler handler)