Minor cleanups based on API review
- Be more more consistent when declaring type aliases. - Re-group include directives Change-Id: Ic521e9f7692e538cc98871bdeccd9644c9879089 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
This commit is contained in:
parent
e1926e5060
commit
9ded473914
@ -108,19 +108,19 @@ struct ReduceResultType;
|
||||
template <class U, class V>
|
||||
struct ReduceResultType<void(*)(U&,V)>
|
||||
{
|
||||
typedef U ResultType;
|
||||
using ResultType = U;
|
||||
};
|
||||
|
||||
template <class T, class C, class U>
|
||||
struct ReduceResultType<T(C::*)(U)>
|
||||
{
|
||||
typedef C ResultType;
|
||||
using ResultType = C;
|
||||
};
|
||||
|
||||
template <class U, class V>
|
||||
struct ReduceResultType<std::function<void(U&, V)>>
|
||||
{
|
||||
typedef U ResultType;
|
||||
using ResultType = U;
|
||||
};
|
||||
|
||||
template <typename R, typename ...A>
|
||||
@ -133,13 +133,13 @@ struct ReduceResultType<R(*)(A...)>
|
||||
template <class U, class V>
|
||||
struct ReduceResultType<void(*)(U&,V) noexcept>
|
||||
{
|
||||
typedef U ResultType;
|
||||
using ResultType = U;
|
||||
};
|
||||
|
||||
template <class T, class C, class U>
|
||||
struct ReduceResultType<T(C::*)(U) noexcept>
|
||||
{
|
||||
typedef C ResultType;
|
||||
using ResultType = C;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -44,10 +44,10 @@
|
||||
|
||||
#ifndef QT_NO_CONCURRENT
|
||||
#include <QtConcurrent/qtconcurrentrunbase.h>
|
||||
#include <type_traits>
|
||||
|
||||
#include <QtCore/qpromise.h>
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifndef Q_QDOC
|
||||
|
Loading…
Reference in New Issue
Block a user