mirror of
https://github.com/simonbrunel/qtpromise.git
synced 2024-11-22 02:34:30 +08:00
Minor code style cleanup
This commit is contained in:
parent
da3ae12c02
commit
5e754d1b08
@ -1,8 +1,8 @@
|
||||
#ifndef _QTPROMISE_MODULE_H
|
||||
#define _QTPROMISE_MODULE_H
|
||||
#ifndef QTPROMISE_MODULE_H
|
||||
#define QTPROMISE_MODULE_H
|
||||
|
||||
#include "../src/qtpromise/qpromise.h"
|
||||
#include "../src/qtpromise/qpromisefuture.h"
|
||||
#include "../src/qtpromise/qpromisehelpers.h"
|
||||
|
||||
#endif // ifndef _QTPROMISE_MODULE_H
|
||||
#endif // ifndef QTPROMISE_MODULE_H
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef _QTPROMISE_QPROMISE_H
|
||||
#define _QTPROMISE_QPROMISE_H
|
||||
#ifndef QTPROMISE_QPROMISE_H
|
||||
#define QTPROMISE_QPROMISE_H
|
||||
|
||||
// QtPromise
|
||||
#include "qpromise_p.h"
|
||||
@ -95,4 +95,4 @@ private:
|
||||
|
||||
#include "qpromise.inl"
|
||||
|
||||
#endif // ifndef _QTPROMISE_QPROMISE_H
|
||||
#endif // ifndef QTPROMISE_QPROMISE_H
|
||||
|
@ -12,7 +12,8 @@ public:
|
||||
: m_promise(new QPromise<T>(std::move(p)))
|
||||
{ }
|
||||
|
||||
void operator()(const T& value) const {
|
||||
void operator()(const T& value) const
|
||||
{
|
||||
resolve(value);
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef _QTPROMISE_QPROMISE_P_H
|
||||
#define _QTPROMISE_QPROMISE_P_H
|
||||
#ifndef QTPROMISE_QPROMISE_P_H
|
||||
#define QTPROMISE_QPROMISE_P_H
|
||||
|
||||
// QtPromise
|
||||
#include "qpromiseerror.h"
|
||||
@ -494,4 +494,4 @@ private:
|
||||
|
||||
} // namespace QtPromise
|
||||
|
||||
#endif // ifndef _QTPROMISE_QPROMISE_H
|
||||
#endif // ifndef QTPROMISE_QPROMISE_H
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef _QTPROMISE_QPROMISEERROR_H
|
||||
#define _QTPROMISE_QPROMISEERROR_H
|
||||
#ifndef QTPROMISE_QPROMISEERROR_H
|
||||
#define QTPROMISE_QPROMISEERROR_H
|
||||
|
||||
// QtPromise
|
||||
#include "qpromiseglobal.h"
|
||||
@ -55,4 +55,4 @@ private:
|
||||
|
||||
} // namespace QtPromise
|
||||
|
||||
#endif // _QTPROMISE_QPROMISEERROR_H
|
||||
#endif // QTPROMISE_QPROMISEERROR_H
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef _QTPROMISE_QPROMISEFUTURE_P_H
|
||||
#define _QTPROMISE_QPROMISEFUTURE_P_H
|
||||
#ifndef QTPROMISE_QPROMISEFUTURE_P_H
|
||||
#define QTPROMISE_QPROMISEFUTURE_P_H
|
||||
|
||||
// Qt
|
||||
#include <QFutureWatcher>
|
||||
@ -94,4 +94,4 @@ struct PromiseFulfill<QFuture<void> >
|
||||
|
||||
} // namespace QtPromisePrivate
|
||||
|
||||
#endif // _QTPROMISE_QPROMISEFUTURE_P_H
|
||||
#endif // QTPROMISE_QPROMISEFUTURE_P_H
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef _QTPROMISE_QPROMISEGLOBAL_H
|
||||
#define _QTPROMISE_QPROMISEGLOBAL_H
|
||||
#ifndef QTPROMISE_QPROMISEGLOBAL_H
|
||||
#define QTPROMISE_QPROMISEGLOBAL_H
|
||||
|
||||
// QtCore
|
||||
#include <QtGlobal>
|
||||
@ -122,4 +122,4 @@ struct ArgsOf<const volatile T&&> : public ArgsOf<T>
|
||||
|
||||
} // namespace QtPromisePrivate
|
||||
|
||||
#endif // ifndef _QTPROMISE_QPROMISEGLOBAL_H
|
||||
#endif // ifndef QTPROMISE_QPROMISEGLOBAL_H
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef _QTPROMISE_QPROMISEHELPERS_H
|
||||
#define _QTPROMISE_QPROMISEHELPERS_H
|
||||
#ifndef QTPROMISE_QPROMISEHELPERS_H
|
||||
#define QTPROMISE_QPROMISEHELPERS_H
|
||||
|
||||
// QtPromise
|
||||
#include "qpromise_p.h"
|
||||
@ -39,4 +39,4 @@ QPromise<void> qPromiseAll(const QVector<QPromise<void> >& promises)
|
||||
|
||||
} // namespace QtPromise
|
||||
|
||||
#endif // _QTPROMISE_QPROMISEHELPERS_H
|
||||
#endif // QTPROMISE_QPROMISEHELPERS_H
|
||||
|
Loading…
Reference in New Issue
Block a user