diff --git a/src/qtpromise/qpromisehelpers.h b/src/qtpromise/qpromisehelpers.h index 6f753fa..206a4a6 100644 --- a/src/qtpromise/qpromisehelpers.h +++ b/src/qtpromise/qpromisehelpers.h @@ -7,7 +7,7 @@ namespace QtPromise { template -typename QtPromisePrivate::PromiseDeduce::Type qPromise(T&& value) +static inline typename QtPromisePrivate::PromiseDeduce::Type qPromise(T&& value) { using namespace QtPromisePrivate; using Promise = typename PromiseDeduce::Type; @@ -18,7 +18,7 @@ typename QtPromisePrivate::PromiseDeduce::Type qPromise(T&& value) }); } -QPromise qPromise() +static inline QPromise qPromise() { return QPromise([]( const QPromiseResolve& resolve) { @@ -27,12 +27,12 @@ QPromise qPromise() } template -QPromise > qPromiseAll(const QVector >& promises) +static inline QPromise > qPromiseAll(const QVector >& promises) { return QPromise::all(promises); } -QPromise qPromiseAll(const QVector >& promises) +static inline QPromise qPromiseAll(const QVector >& promises) { return QPromise::all(promises); }